Hi, i want to create a rule for duplicate epic. so i created rule when issue will be created thn i used lookup . it ll lookup in current project , if the new epic with summary will be there it should not close the epic or if existing epic will be there thn it ll be closed. i want to store output of lookup thn i want to put if else condition. how i can store output of lookup ?
the result of the Lookup Issues Action are automatically accessible via the smart value {{lookupissues}}
Check out this documentation for more details: Jira smart values - issues | Cloud automation Cloud | Atlassian Support (search for "lookupissues")
can we store the output of lookup as a variable. thn we can use if else condition.is it possible or any other way is thr?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the variable action but you could also simply access the smartvalue straight from the if else.
Quick example below. Lookupissues will give you a list of issues. .First will access the first issue in the list.
More operations available here: Jira smart values - lists | Cloud automation Cloud | Atlassian Support
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The If-Conditions look wrong. I think it should be
{{lookupissues.size}} > 0
Issuetype = Epic -> this will check the trigger Issue's Issue type. Is that what you want?
Apart from that simply try it out. I am not too sure what you want to achieve from a business point of view so can't really advise any further.
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.