Hi all,
I'm trying to make an automation rule for a Test Case issueType that when any update is made to it the automation rule will look up the current Open Sprint for the project and add a label with that Open Sprint name to the Test Case as a label. The problem is our Test Cases don't use the Sprint field in Jira even though they are under projects that use open sprints. I followed the thread here and came up with the following below:
{
"update": {
"labels": [{
"add": "{{#lookupIssues.first.sprint}}{{#if(equals(state,"active"))}}{{name}}{{/}}{{/}}"
}]
}
}Unfortunately this did not work for me.
I know the Automation rule itself in general works because I swapped out
"add": "{{#lookupIssues.first.sprint}}{{#if(equals(state,"active"))}}{{name}}{{/}}{{/}}"
with
"add": "testLabel"
and that worked just fine when I triggered the rule.
Any other ideas of how I could alter this to get the label name I want?