Via the “Your work” menu in the Jira UI I can get stories that I recently worked on. Is that same set of stories available from within the Jira API? I can't see where it is — can anyone nudge me in the right direction?
Hi @Andrew Lighten ,
For the issues updated by you in the last 10 days, you can use the below JQL. Just replace TheUserName with your jira user name.
issueKey in updatedBy(TheUserName, "-10d")
Then, encode the above jql(eg. using https://meyerweb.com/eric/tools/dencoder/) and append to Jira Rest API as below.
/rest/api/2/search?jql=issueKey%20in%20updatedBy(TheUserName%2C%20%22-10d%22)
Thanks, @Mehmet A _Bloompeak_ ...I forgot about that function.
Andrew, please take a look at this documentation to adjust how updatedBy() checks for timeframe ranges to get what you want:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by "get stories I worked on"? Do you mean issues you were assigned to at some point? If so...
First try this filter to see if it returns what you expect, adjusting your project name and typing in your name to find your ID:
project = myProject AND assignee WAS type-in-your-user-name ORDER BY Key
Now adjust that filter for other criteria you wish, such as timeframe. You may now use that JQL statement in a call to the REST API:
https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/search-search
Please note that you could also save your filter and have the REST API call it, and also adjust the columns/fields returned.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I’m after is stories that I edited in some way. Ideally, stories I edited on a specific date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying, and I do not believe that is possible with the out of the box REST API. You could look at the change log for an issue, but you would need to grab each issue to check.
You may want to check in the developer community to see if someone has solved this another way: https://community.developer.atlassian.com/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.