Project

General

Profile

user_id in api issues

Added by Rafaela Lima 21 days ago

When I try to check the issues that have had an update from my user, it returns the issues for all users.

https://myredmine/issues.json?key=mykey&from=2023-02-01&to=2023-12-31&user_id=me

Any suggestions on how to get it from just my user?


Replies (4)

RE: user_id in api issues - Added by Holger Just 21 days ago

The query parameter to filter by author is author_id. Your URL should thus be:

https://myredmine/issues.json?key=mykey&from=2023-02-01&to=2023-12-31&author_id=me

RE: user_id in api issues - Added by Rafaela Lima 19 days ago

but I wanted it to return the Issues that I updated at some point and not the ones I created.

RE: user_id in api issues - Added by Holger Just 19 days ago

In that case, the query key is updated_by. This will return issues where you (or the selected user) has performed any updates, i.e. if there are any journals authored by the user.

RE: user_id in api issues - Added by David redminePRO 19 days ago

You have plenty of paging examples in the API documentation link. https://www.redmine.org/projects/redmine/wiki/Rest_Issues

GET /issues.xml
GET /issues.xml?issue_id=1
GET /issues.xml?issue_id=1,2
GET /issues.xml?project_id=2
GET /issues.xml?project_id=2&tracker_id=1
GET /issues.xml?assigned_to_id=6
GET /issues.xml?assigned_to_id=me
GET /issues.xml?status_id=closed
GET /issues.xml?status_id=*
GET /issues.xml?cf_1=abcdef
GET /issues.xml?sort=category:desc,updated_on

Paging example:
GET /issues.xml?offset=0&limit=100
GET /issues.xml?offset=100&limit=100

To fetch issues for a date range (uncrypted filter is "><2012-03-01|2012-03-07") :
GET /issues.xml?created_on=%3E%3C2012-03-01|2012-03-07

To fetch issues created after a certain date (uncrypted filter is ">=2012-03-01") :
GET /issues.xml?created_on=%3E%3D2012-03-01

Or before a certain date (uncrypted filter is "<= 2012-03-07") :
GET /issues.xml?created_on=%3C%3D2012-03-07

To fetch issues created after a certain timestamp (uncrypted filter is ">=2014-01-02T08:12:32Z") :
GET /issues.xml?created_on=%3E%3D2014-01-02T08:12:32Z

To fetch issues updated after a certain timestamp (uncrypted filter is ">=2014-01-02T08:12:32Z") :
GET /issues.xml?updated_on=%3E%3D2014-01-02T08:12:32Z

To fetch issues for which custom field 4 contains the substring "foo" :
GET /issues.xml?cf_4=~foo

--
David - https://redminepro.com/
    (1-4/4)