Forums

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

How can I automate change of status between two projects?

Aaron Mccollough August 9, 2021


In Jira Cloud, I am working with 2 projects:

1. Customer Service Project (CSUP)
2. Repo Prioritization (RP)

When certain types of issues are raised in CSUP (a  service management support project), I clone them and move the clone to RP (an internal product kanban project).

I want to set up an automation that will watch these cloned issues in RP and, when the status changes on one of them, will automatically change the status on the original issue in CSUP (which is automatically linked as part of the cloning process).

I’ve tried setting up rules for this several different ways, but the status of the CSUP original issue doesn’t change when the RP clone of that issue changes.

This is a basic recipe I've tried:

Screen Shot 2021-08-09 at 4.27.27 PM.png

 

This is a more complicated attempt:

Screen Shot 2021-08-09 at 4.29.36 PM.png


I seem to be getting hung up on this error: “Destination status could not be resolved. If using a smart-value ensure this resolves to a numeric status ID or untranslated name for issues (with current status)”

I’ve tried sharing globally and with only the two projects in question (CSUP and RP).

I’ve also checked to make sure “atlassian-addons-project-access” has permission to transition issues, which it does.

I’m starting to get frustrated… thanks for any help anyone can offer.

 

 

3 answers

0 votes
Mark Chaimungkalanont
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 11, 2021

Hey there Aaron,

Yeah, the error here is interesting... "Destination status could not be resolved" the issue is likely that the Status in CSUP and RP may be different, even though they are superficially the same? Are they sharing the same Workflow?

Cheers,

Mark C

0 votes
Fabian Lim
Community Champion
August 10, 2021

Hi @Aaron Mccollough:

Thanks for the screenshots of the workflows. I think I understand what you are trying to accomplish. Based on your requirements, you will have to create several rules that are similar in nature. You have to think about how the statues in RP map to CSUP.  I have taken a stab at how I would do it. The following rules would be created from the RP Project and set to multiple projects.  

1.RP moves from to do to In progress -> Original issue Transition to In Progress (Rule assuming that you have cloned the issue manually and it's linked via the clones relationship from the RP issue to CSUP Issue).

rule 1.png

2.  RP moves from in progress to Done -> Original Issue transition to Done

rule 2.png

 

3. RP moves from any status to Future Sprint Queue or Unprioritized Work -> Move original issue to Pending

rule 3.png

I hope you get the idea. You may want add extra conditions for issue types if needed.  

 

Fabian

Aaron Mccollough August 11, 2021

Ooops... deleted.... still testing...

0 votes
Fabian Lim
Community Champion
August 9, 2021

Hi @Aaron Mccollough

Do the linked issues have a transition thst allows you to move to "copy from trigger issue"? Especially for csup-28.

Aaron Mccollough August 9, 2021

Hi @fab

I'm nor sure, but I suspect no. I know how to edit workflows in a basic way, but I haven't seen reference to that particular allowance. How does one create such a transition? Do you create "copy from trigger issue" as a step name? 

Fabian Lim
Community Champion
August 9, 2021

@Aaron Mccollough:

You may want to take a look at the rules here: https://www.atlassian.com/software/jira/automation-template-library/rules#/labels/global/customLabelId/21570

You are basically looking for a rule that updates the following way:

From the RP Project:

1. trigger: issue transitioned

2. conditions: a specific condition to ensure that you pick up the cloned tickets

3. branch: to original issue through linked issues

4. Action: Transition issue to the corresponding status

Note: In order for this to work you have to ensure that the status matches in both projects. Or you will get transition errors.  

I hope this helps.

Aaron Mccollough August 10, 2021

I'm still not having success. I suspect the problem is a mismatch between workflow transitions and or status correspondence, but I can't figure out how to get them to match.

I am able to set up an automation on RP that will transition the CSUP-original linked cloned issue from "Open" to "Pending," but I can't get it to work with any other status (such as "Open" to "In Progress"). 

Here is the workflow for CSUP:

 

Screen Shot 2021-08-10 at 10.51.30 AM.png

 

And here is the workflow for RP:

 

Screen Shot 2021-08-10 at 10.42.34 AM.png

Suggest an answer

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

Atlassian Community Events