There are a bunch of other articles out there on this, but for some reason I'm still struggling to get it working.
I'm looking to add the active sprint name as a label on work items that have the label "release-review".
This seems straight forward, but clearly I'm doing it wrong.
Hi @Josh Allen
What happens when your rule runs? Please show an image of the audit log details for that rule execution.
Until we see that information...
Sprint names can contain characters which are not supported as Label values. What do your sprint names look like?
And, the Sprint field can have multiple values when a work item has been in multiple sprints, and so the field is a list of values. Have your work items been in multiple sprints?
Kind regards,
Bill
Ohhhh huh, do I need to somehow remove spaces so that it can be a label?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The work item sometimes does end up in multiple sprints which is why I am trying to add the label. We're trying to find release review tickets created within a specific sprint and since the sprint field can contain multiple sprints it's sometimes confusing to figure out when it was created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and that may be done with the replace function (again assuming only one sprint name):
{{issue.sprint.name.replace(" ", "_")}}
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.
When there are multiple sprints, you may filter them with this expression:
{{#issue.sprint}}{{#if(equals(state, "active"))}}{{name.replace(" ", "_"}}{{/}}{{/}}
This expression iterates over the list of sprint values, using a condition to filter them, and only returning that name.
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.