I have a rule that changes the transition of the Status to "Ready for Production" when the work item is Status is transitioned to "in Staging. How do I add this to the rule, copy the sprint value of the work item into the Labels field?
Hey @Diane Janke
You could try to add the sprint value as smart value to the labels field, something like this
Hi @Jonas Moehringer - ij-solutions
That approach will not work when:
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.
Hi @Diane Janke
What do you want to put in the labels field: the sprint name, its ID, or something else?
And if it is the name, what are some examples of your sprint names? If they have special characters or spaces, they may need to be replaced with text functions before adding as a new label.
Finally, when you want to add the label, do you want to replace all the existing labels or add a new value to the existing ones? If you want to add one, please try this:
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.
The sprint name IDX 27.1.1 and I would like to add to the existing labels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for that information, @Diane Janke
The sprint field is a list of sprints the work item has been in over time. And, I hypothesize you only want to add the label for the current active sprint. If so, that would be this expression:
{{#issue.sprint}}{{#if(equals(state, "active"))}}{{name.replace(" ", "_")}}{{/}}{{/}}
How that works is:
To use that result, that must be stored in a variable and used to add the Label:
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.