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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,430
Community Members
 
Community Events
184
Community Groups

Change state of related issue in different project

I would like to change the state of a related issue in a different project when creating the link. Example:

I link issue XXX-001 from project A to issue YYY-999 in project B.

At the point in time, I would like to automatically transition issue YYY-999 to state "abcde".

What conditions would I need to use for that?

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 17, 2023

Hello @Matthias Schablowski 

Welcome to the Atlassian community!

Are you an administrator for Project B, or a Jira Administrator?

Which issue link type are you using? What is the relationship between the issues? For example one link type is Blocks, and when two issues are linked with that link type then issue1 "blocks" issue2, and issue2 "is blocked by" issue1.

It is possible to do this through Automation, but the exact steps depend on which link type you are using and the relationship between the issues, and if you have any level of administrative access.

I am not the Jira Admin but Project Admin for both the projects. The link type is simply “Related To”.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 17, 2023

When two issues are linked with the "Related to" link type and you view each issue and look at the Linked Issues section, what does it say in each issue for the link relationship to the other issue? Does it say the same thing in both issues?

Screen Shot 2023-04-17 at 2.30.23 PM.png

 

Screen Shot 2023-04-17 at 2.33.29 PM.png

 

If they say the same thing, that makes this much more difficult.

Automation for Jira has a trigger to detect that an issue has been linked, however it is triggered by the link addition to the "source" issue. For instance in the blocks/is-blocked-by link relationship, the issue that is causes the blockage is considered the "source" issue. If the link type you are using shows the same link text in both issues, as I showed in the images above, then you don't know which issue is the one that the rule would consider the trigger, or source, issue. That makes it harder to figure out which one needs to be changed.

Based on experimentation in my system with the Relates To link, it appears that the issue from which I created the Relates To link is always considered the trigger/source issue in this case. So, if you created the link from the Project B issue to the Project A issue, then the project B issue would be considered the trigger/source issue, and you could create the automation rule in project B to transition the Project B issue when the link was created.

If you always or sometimes create the link from the Project A issue, though, you would have to use branching to get to the issue in project B to transition it. That would make the rule a multi-project rule, and only a Jira Administrator can construct a multi-project rule.

Ok, I tried using the "Relates To" link type as shown in the image. As I understand, I would need to get rid of the rule restriction. How can this be done? Checking the details as mentioned in the comment does not allow me to do so.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

I'm not sure what you're referring to when you say "the rule restriction". Can you clarify that statement?

Did you add the rule to project A or project B?

Is the rule operating as you expect?

It is working now. The critical part is that it is not possible to transition an issue in the "other" project (i.e. the one of the target issue) but only within the same project (i.e. the one with the source issue).

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

It is possible to transition the issue in the other project, but it requires creating a Global Automation Rule, which can be done only by a Jira Administrator.

Suggest an answer

Log in or Sign up to answer