Can automation rule use smartValue with JQL that uses IN CLAUSE with the smartValue?

Joni Johnson
Contributor
July 2, 2024

We are creating an automation rule that loops through linked issues on a change request. We want to get all the fix version(s) associated with the first linked issue and transition the stories for those fix version(s) to closed AND release these fixVersion(s) then repeat for then next linked issue until all linked issues updated.

Is there a way with a smartValue and JQL to setup a fixVersion in ({{smartValue}})?

 

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2024

Hi @Joni Johnson 

Yes, a smart value (containing a list of, or delimited, values) could be used to create a dynamic JQL statement to find issues.  For example, to find the subtasks of an issue:

key IN ( {{issue.subtasks.key.join(", ")}} )

 

However you seem to be describing a scenario that would require both nested branching and sequential branch processing, and neither of those are possible with Jira automation rules.

I recommend you:

  • outline the steps in your complete scenario,
  • try to implement it, and
  • if you run into specific challenges,
    • post images of your complete rule and the audit log details, and 
    • explain what is not working as expected.

Those will provide context for the community to offer more specific suggestions.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events