Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Post function with script runner that changes linked item status

Ana Luiza Chagas
Contributor
April 12, 2024

Hi Team!

I have a requirement and would like to know if it is possible through the post function with scriptrunner for jira cloud to update the status of a linked item in Project X when the status of the main item in Project Y is also updated.

Ex:
- When the status of the main item in Project X is updated
- post-executor script function also updates the linked item in Project Y

I found some solutions but they all have the script with import ComponentAccessor which is not available for Jira Cloud..

It would help me a lot if anyone knew of a solution similar to this.

Thanks for the help!

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Ben van den Berg
Contributor
April 12, 2024

Hi @Ana Luiza Chagas 

You can achieve your objective with a ScriptRunner script configured to execute when the issue in Project X transitions to a specific status. As long as you have a link from the issue in Project X to an issue in Project Y, you can also transition the associated issue to Project Y. Obviously, you need the ScripRunner add-on to create the script. To create a ScripRunner script, you must have programming skills to write Groovy scripts. You can do the same with Jira Automation if you cannot write Groovy scripts.

I can assist you with both, but we need to discuss specifics, or it will be a theoretical exercise. 

I'm not sure if offering help to members is allowed on these forums. If it is not, the moderator must edit this post and remove my contact details.

@Ana Luiza Chagas you can contact me via email at ben@agiledigital.solutions, and I will assist you.

 

Ana Luiza Chagas
Contributor
April 15, 2024

Hi @Ben van den Berg!

This solution is perfect for the need.
We have the scriptrunner add-on, but I would like to better understand how to create a Groovy scripts that performs this action.

I would be very grateful to receive your help! I also contacted you via email.

Thanks for the answer!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events