Feature #7506
closed
Include allowed activities list in "project" API response
Added by Alex Last over 13 years ago.
Updated over 7 years ago.
Description
I'm trying to implement createTimeIssue() method in Java.
Redmine REST API expects me to provide activity_id in parameters unless a default activity is defined.
How can I find out what the allowed activities are? What are their IDs?
I think the response sent to "get project" request should include activities list.
As I understand, this file should be updated:
app\views\projects\show.api.rsb
- Status changed from New to Resolved
This is duplicate of one or some of the following;
Closing this, status is resolved since 400 days and more (issue was last updated more than 400 days ago)...
- Status changed from Resolved to Closed
can't see why this issue was closed. neither has the feature been implemented (still no allowed activities in project response), nor ist this explicitly mentioned in one of the related tickets?
- Status changed from Closed to New
- Assignee deleted (
Jean-Philippe Lang)
This is quite frustrating that this functionality is not available. As right now we have a customer who our software can not record time to their Redmine install for one project due to them limiting the activities allowed on that project.
Having this data available in the project feed is essential if you are going to allow limiting things in this manner.
- Subject changed from include allowed activities list in "project" response to Include allowed activities list in "project" API response
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 3.4.0
- Resolution set to Fixed
Feature added, you can now get the project activities in the API response using:
GET /projects/[project].(xml|json)?include=time_entry_activities
Thanks Jean-Philippe!
What will the output of that look like? And will it include the default property?
Also available in: Atom
PDF