Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't set Resolution for auto transitioned Sub-tasks

Martin Karlsson
Contributor
January 13, 2025

What do I want?

To transition Sub-tasks according to the Status changes of their parents, incl setting Resolution according to the parent's Resolution when the parent Issue is set to Done.

 

Jira automation setup

  1. Trigger = Issue transitioned
  2. If - JQL: issuetype in (story, bug), and
  3. If - Linked Issues present (types: is tested by), and
  4. If - Sub-tasks present

Branch 1

  1. For - Sub-tasks
  2. If - JQL: status = Done
  3. Then - Transition Issue to: Copy from trigger Issue, and
  4. Then - Edit Issue Field: Resolution (Copy from trigger Issue)

Branch 2

  1. For - Sub-tasks
  2. If - JQL: status != Done
  3. Then - Transition Issue to: Copy from trigger Issue, and

Rule.png

 

Problem

Status transition works fine, the Sub-task always transitions to the same Status as the parent, but the Sub-task's Resolution is never set when the parent is set to Done (regardless of what Resolution is chosen).

Jira automation doesn't register it as an error so I guess it could be me that messed up the logic.

Audit_log.png

 

Notes

  • Manually, Resolution is set on a Resolution Screen that appears when an Issue is set to Status Done.
  • A Post-function clears the Resolution Field whenever an Issue is moved from Status Done.

1 answer

0 votes
Rilwan Ahmed
Community Champion
January 13, 2025

Hi @Martin Karlsson ,

Can you share the audit log response. i.e. Open the automation rule audit log, click "Show more" against the incomplete rule and click on expand arrow. This will show why action was not performed.

image.png

Martin Karlsson
Contributor
January 13, 2025

Hi @Rilwan Ahmed 

Here you go.

Extended_audit_log.png

Martin Karlsson
Contributor
January 14, 2025

Ah, I found the solution.

I moved the action to edit the Resolution Field to the other branch. I had misinterpreted the If conditions in the two branches as referring to the Status of the triggering Issue rather than the Status of the Sub-task --> the condition to copy the Resolution Field was never fulfilled when I set the trigger Issue to Done... I think =)

It works as I want it to now, thanks anyway!

Suggest an answer

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

Atlassian Community Events