Hello,
I need to change the sprint of an issue with automation.
However instead of using the sprint ID, I want to use the name of the sprint. Is this possible?
Unfortunately below example does not work. I tried a few other things but not sure if its even possible to do this without using the sprint ID?
{ "fields" : {
"customfield_10005" : [{"name" : "Existing Sprint name"}]
}
}
I get the error message:
Error occurred setting field 'customfield_10005'. It will be ignored. (customfield_10005)
---------------
Info:
I have certain releases mapped to specific sprints.:
e.g
Release name: R23/22 > Sprint name: Sprint R23/22
Release name: R23/23 > Sprint name: Sprint R23/23
> As soon as the release of an issue changes, it should also change to the corresponding sprint.
> Since the sprint has the release in its name, it would be a lot easier using the names instead of mapping each release separately to each sprint ID.
No, but the work-around for that scenario is to lookup the id needed from the name:
If you want to try that approach, here is a how-to for calling the REST API functions from a rule and the other documentation you will need:
Kind regards,
Bill
Awesome, that's a great Idea! I will try this. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it is not possible to use the name instead of the sprint Id. The reason is that the sprint name isn't unique in your instance, you could have two or more sprints with the same name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Patrizia Heinzl
*I am ashamed to suggest this*
Another option, which by passes API call is to,
create a place holder / dummy story in every sprint which will be discarded eventually.
That way, when release is updated on any story, you can do a lookup of issues in that sprint, which gives you the dummy issue and you can get the sprint ID from that.
{{#lookupIssues}}{{#sprint}}{{#if(equals(state,"active"))}}{{id}}{{/}}{{/}}{{/}}
Which you can use to edit your trigger issue..
/hides
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.