Hello,
I have a rule that is copying FixVersion from Project 1 to Target Quarter in Project 2, when FixVersion is updated. This is working correctly.
I'm using the below to only copy output that have "Q" - The reason for this is that in FixVersion we use ProjectXZY, 25-Q4, 25-Q3, 25-Q2. The below will only copy anything that contains a "Q" -- this is working
{{#triggerIssue.fixVersions}}{{#if(name.contains("Q"))}}{{name}}{{^last}}, {{/}}{{/}}{{/triggerIssue.fixVersions}}
Now I want to modify so if the Output has more then 1 Q then it should updated the Target Quarter field in Project 2, with Needs Attention.
Any help would be appreciated?
I've tried a couple of variations of this, but can't figure it out.
{{#triggerIssue.fixVersions.get(1)}}
{{#if(name.match(".*Q.*"))}}
Needs Update
{{/}}
{{/triggerIssue.fixVersions.get(1)}}
{{^triggerIssue.fixVersions.get(1)}}
{{#triggerIssue.fixVersions.get(0)}}
{{#if(name.match(".*Q.*"))}}
{{name}}
{{/}}
{{/}}
{{/triggerIssue.fixVersions.get(1)}}