Is there a way to get Story Points from an Issue using the JIRA Agile REST API? I don't see anything in the documentation.
I was trying to access the information usin:
rest/agile/1.0/issue/<ID>
But on the returned JSON there's no field that looks like Story Points. The only field that stores a similar value is "customfield_12310293" but the name is not that descriptive.
Community moderators have prevented the ability to post new answers.
Hi Carlos!
Actually, in order to obtain the "Story Points" for a given issue, I'd recommend using JIRA's default REST API rather than Agile's. However, the field will not appear with its name, but as "customfield_<id>".
You can get the value for "<id>" by going, in JIRA, to Administration > Issues > Custom Fields and hovering over the Edit button for the "Story Points" custom field (under the "cog" icon at the right). A numeric ID will be displayed at the end of the URL for that link.
Then, just run a GET request using the below URL and search for the value of "Story Points".
http://localhost:8080/jira/rest/api/latest/issue/TEST-2
Replace localhost:8080/jira
with the actual address for your JIRA instance and TEST-2
with the actual key for the issue you're trying to retrieve the field value from.
--
Cheers!
Joao
Hi Jao,
And if I want to make a generic add-on. How do I get the value of the <id> programatically ?
Cheers,
Christophe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I might be late, but I guess that you want to use the specified REST endpoint for it, e.g. https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-field-get
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.