How can I access a list of an issue sprints with smart values?
Looking at Smart values I cannot find a reference to it
Have you tried {{issue.sprint}} yet? That is a list of the sprints an issue has been assigned to and which have at least started.
Here is the documentation on the value to see what is available within it:
And here is information on working with list smart values:
https://support.atlassian.com/jira-software-cloud/docs/smart-values-lists/
Best regards,
Bill
so it exists? it wasn't documented. is it {{issue.sprint}} or {{issue.sprints}}?
I suppose that would work. But then finding if the sprint the issue is now is closed that would be a different matter.
For the moment as a workaround I looked at the issue status, assuming that if all sprints are closed the issue is in a closed state (bit risky in some edge cases I know)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is {{issue.sprint}} singular.
For closure detection, you may check {{issue.sprint.state}} for "closed"
Or, you may use JQL: sprint IN closedSprints()
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.
You can use the standard smart value to get the issue fields.
{{issue.fields.customfield_XXXXX}}
You can use this REST end point "JIRAURL/rest/api/latest/field" to find the Sprint field's customfield id.
I hope it helps.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.