duplicate epic creation

Viresh Kumar March 12, 2024

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 ?

1 answer

0 votes
Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2024

Hi @Viresh Kumar 

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")

Viresh Kumar March 13, 2024

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?

Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2024

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

 

 

Screenshot 2024-03-13 083547.png

 

Viresh Kumar March 13, 2024

Screenshot 2024-03-13 at 1.19.40 PM.png

Viresh Kumar March 13, 2024

now my rule is like this. can u suggest in this

Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2024

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events