Project

General

Profile

Get available statuses by tracker through API

Added by Denis Konstantinov almost 10 years ago

Hello!
I'm using the Redmine API, and I have a problem with this task. I need to get list of statuses depending on tracker. Something like:

redmine/issue_statuses.xml?tracker_id=1

Is it possible or there other solutions?


Replies (4)

RE: Get available statuses by tracker through API - Added by Lucile Quirion almost 10 years ago

Hello,

The issue_statuses and trackers are tools to describe your issue.
They do not depend on each other. Therefore your request doesn't make sense.

I guess that what you really want is a list of issues filtered per statuses and trackers.
Which is possible with the following request

GET /issues.json?status_id=1&tracker_id=1

You can get the available issue_statuses through the API ('issue' in issue_statuses is singular):
http://www.redmine.org/issue_statuses.json

You can also get the available trackers through the API:
http://www.redmine.org/trackers.json

Regards

RE: Get available statuses by tracker through API - Added by Denis Konstantinov almost 10 years ago

Thanks for response.
But I do not need list of issues. I am trying to design issue creating form for my app, thats why I need list of statuses and trackers.

So, statuses and trackers are unrelated, but they have the dependencies through the Workflow. When you create an issue the list of statuses depends on chosen tracker.
Maybe I asked a wrong question, and actually I need list of workflow record.

RE: Get available statuses by tracker through API - Added by Lucile Quirion almost 10 years ago

My bad,

Workflows REST API is not implemented yet (v3.0.0)
Here is a list of implemented Rest_api

You can submit a feature.
But since its a rare use case, you may have to implement it yourself.

RE: Get available statuses by tracker through API - Added by Federico Vergelli about 3 years ago

Hello, did you find a way to list the statuses of particular trackers? I kinda need that feature right now

    (1-4/4)