Hi all!
I am using JIRA Server and I'm having trouble using an existing smart value inside a for loop.
Example:
I have a jira automation (action) that does the following:
What I'm not having trouble doing is setting SEC-1 'is related to' FIX-1a, FIX-2a, and FIX-3a.
In the jira automation, I set a smart variable successfully at the start such that {{secticket}} is set to 'SEC-1' by using a For JQL.
However, in the for loop 'For each 'is fixed by by' FIX:', I try to set FIX-1a, FIX-2A, and FIX-3a as 'related to' {{secticket}}, but {{secticket}} is EMPTY.
Is this a limitation, or am I doing something incorrectly? Is there a better way to accomplish this?
Hi @Andrew Bui
Automation branches which could be on more-than-one-thing run in parallel and asynchronously, and there is no guarantee of when the branch will complete...up until the last step of the entire rule.
For a rule which creates variables inside the branch, this means that each one is created independently, and thrown away as each pass through the branch / loop completes.
What does your created variable contain / represent? Knowing that may help identify an alternative rule structure to find the value.
Kind regards,
Bill
Hi @Andrew Bui ,
Welcome to Atlassian community and thank you for your question.
To try to help, could you post your automation?
Kind regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
here's some redaction but the flow is the same! On that last step of link issue to {{secticket}}, it errors. I did confirm that {{secticket}} has the correct value after the variable is created at the top.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest to create the variable with empty value before the "For Jql"
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.