Project

General

Profile

Actions

Feature #7506

closed

Include allowed activities list in "project" API response

Added by Alex Last almost 14 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
REST API
Target version:
Start date:
2011-01-31
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

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

Actions #1

Updated by Bevan Rudge over 13 years ago

  • Status changed from New to Resolved
This is duplicate of one or some of the following;
Actions #2

Updated by Bevan Rudge over 13 years ago

I meant #7819, not #7402.

Actions #3

Updated by Jan Niggemann (redmine.org team member) almost 12 years ago

Closing this, status is resolved since 400 days and more (issue was last updated more than 400 days ago)...

Actions #4

Updated by Jan Niggemann (redmine.org team member) almost 12 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Matthias Schelling about 10 years ago

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?

Actions #6

Updated by Toshi MARUYAMA about 10 years ago

  • Status changed from Closed to New
  • Assignee deleted (Jean-Philippe Lang)
Actions #7

Updated by Edward Rudd almost 8 years ago

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.

Actions #8

Updated by Jean-Philippe Lang almost 8 years ago

  • 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
Actions #9

Updated by Edward Rudd almost 8 years ago

Thanks Jean-Philippe!

What will the output of that look like? And will it include the default property?

Actions

Also available in: Atom PDF