Forums

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

Automate priority change if linked issues exist when changing status

Mark Farmer February 11, 2025

Hi,

 

I work with a lot of test cases and have automated much of the creation process. I now want to be able to automate the priority in order to change it when the issue moves to a new status and if the issue has linked issues.

 

ie:

Issue A has Issue B linked as a blocker or test. Issue A moves into In Progress status. Issue A's priority needs to change. 

 

I can't seem to get any logic I try to work.

3 answers

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

Hi @Mark Farmer , see if the following is close to your goal...

IMG_5267.jpeg

 

P.s. I see you are on Premium? If so I highly recommend trying out the AI feature for creating rules as I have found it quite useful.

Mark Farmer February 11, 2025

Hi Jack,

 

I tried something similar and it was changing the priority of the linked issues rather than the ones where the status was changing.

image.png

Mark Farmer February 11, 2025

I've asked if we can use the AI feature and I'm told I can't (some political machinations further up the hierarchy I suspect) :D 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

😒 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

Keep me posted if the above works

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

The above rule will only change the priority of the trigger issue not the linked issues. If you see something different please advise and share audit log.

Mark Farmer February 11, 2025

Hi Jack, I've changed to this rule and now nothing's happening. The rule runs but it seems to think the ticket (CHDT-511) doesn't meet the criteria. The linked issues don't change now though so that's a bonus.

Mark Farmer February 11, 2025

image.pngimage.png

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

Can you share the details of the condition component? Are you choosing a specific link type in that condition? Have you verified that the linked issues are of the type in the condition. 

Mark Farmer February 11, 2025

image.png

Mark Farmer February 11, 2025

They're all linked as 'tests' and that's the condition I've aligned it to. 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

Could you try changing the condition to be any link type and test?

Mark Farmer February 11, 2025

image.pngimage.pngimage.png

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

Hi @Mark Farmer , so I just did a test and it worked fine. one thing I note in your las image is that the linked issues are in a different project. Did you set the rule to be multi-project or global?

Like Tomislav Tobijas likes this
Mark Farmer February 12, 2025

Hi @Jack Brickey I think this is the issue. I've not the permission to make the change but I've submitted a request to our admin team to change it to multi-project. Once it's done I'll come back and let you know!

Like Tomislav Tobijas likes this
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2025

Yes that is the issue for sure.

Mark Farmer February 24, 2025

Hello! Finally got the update, adjusting to multi-project worked. 

Like Tomislav Tobijas likes this
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2025

Thanks. Please consider accepting one of the answers here that helped you zero in on the cause.

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.
February 11, 2025

Hi @Mark Farmer -- Welcome to the Atlassian Community!

What is the scope of your rule: single-project, multiple-project, or global?

 

A single-project scope rule can create / clone issues into other projects, but it cannot access them in any other way.  That is likely why no linked issues are found in your rule condition.

Please try working with your Jira Site Admin to change the rule scope to multiple-project, and select the specific projects needed.

 

Another possible cause of this symptom is link-direction not matching the condition.  You show the "tests" linkage.  What is the link name from the other direction?

 

Kind regards,
Bill

Mark Farmer February 12, 2025

Hi Bill! Thanks for the warm welcome!

 

I've had to submit a request to our admins to change the rule from single to multi-project, hopefully this will resolve my issue. I'll come back and let you know!

0 votes
Tomislav Tobijas
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

Hi @Mark Farmer ,

Based on the following:

ie:

Issue A has Issue B linked as a blocker or test. Issue A moves into In Progress status. Issue A's priority needs to change. 

You can maybe try using the issue transitioned trigger followed by a condition that checks if there are linked issues (you can additionally specify to check for certain link types).

Lastly, if the condition passes, update the original/trigger issue > Priority field by using Edit issue action.

2025-02-11_13-38-16.png

I'm not sure if that is something that you're trying to achieve. Feel free to share some additional details if I maybe missed the point.

Cheers,
Tobi

Mark Farmer February 11, 2025

Hi Tobi,

 

I tried a similar approach but it was changing the priority of the linked issues. What I'm aiming for is changing the priority of the issues that are changing status

Tomislav Tobijas
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

@Mark Farmer If I'm looking at the screenshot provided in another thread, this rule should update the Priority field only for trigger issue (issue that changed the status), and not the Priority fields of linked issues.

Can you share the most recent rule, together with the audit log, once is successfully executed?

Mark Farmer February 11, 2025

image.pngimage.pngimage.pngimage.pngimage.pngimage.png

Mark Farmer February 11, 2025

Apologies for the image surge Tobi but I thought it best to send everything relevant. @Jack Brickey to save duplication :D 

Tomislav Tobijas
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 11, 2025

No worries @Mark Farmer !

By the looks of the audit log, the only 'checked' issue was CHDT-510.

Are you saying that all those linked issues in HE project were updated/their priority was changed? Can you check (and/or screenshot) issue history for those issues?

Mark Farmer February 11, 2025

It may have been a different variation of the flow I'd tried previous(there's been so many!) using this flow, the priority on the 510 ticket doesn't change when moving to Selected for Execution. If I have another CHDT ticket linked, it does. 

Suggest an answer

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

Atlassian Community Events