Update the status of parent project to "Done" when its sub-projects are "Done" using linked issues.

Rohit Datir June 18, 2024

 

 

Suppose I have three projects: A, B, and C, with a hierarchy as follows: A -> B -> C. All these projects are linked to each other by linked issues: A is linked to B with a "relates to" relationship, and B is linked to C with an "is blocked by" relationship.

What I want is for B issues to be automatically marked as "Done" when C issues are marked as "Done." If this happens, A issues should also be marked as "Done."

 

How can I achieve this automation using Jira ScriptRunner?

1 answer

1 vote
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 19, 2024

Hi Rohit,

Just to clarify, are you trying to do this for an Initiative / Plan or a normal issue like Epic -> Story -> Sub-Task.

I can provide an example if I have more information.

Thank you and Kind regards,

Ram

Rohit Datir June 20, 2024

Hi Ram,

Thank you for your response. To clarify, I am looking to implement this automation for normal issues rather than for an Initiative/Plan. Specifically, I have three standard issue types: let's call them Issue A, Issue B, and Issue C, with the following relationships:

  • Issue A is linked to Issue B with a "relates to" relationship.
  • Issue B is linked to Issue C with an "is blocked by" relationship.

Please note that all three issues are from different projects and any issuetype can be used.

I would like to achieve the following automation:

  1. When an Issue C is marked as "Done," the linked Issue B should also be automatically marked as "Done."
  2. Subsequently, when an Issue B is marked as "Done," the linked Issue A should also be automatically marked as "Done."

Could you provide an example of how to achieve this using Jira ScriptRunner?

Thank you and kind regards,

Rohit

Like John Funk likes this

Suggest an answer

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

Atlassian Community Events