Linked issue status syncing
Asked by Aron Entler:

I've looked through all the other questions related to this challenge I am having but I haven't found one that matches what I am trying to do. Hope the Jira brain trust here can help me.

Here's what I am trying to do.

When a new issue is created (alert issuetype) one of the first steps an analyst will do after acknowledging it is to see if there an existing alert that is already being worked on.

If one exists the analyst will use the the outward relates link of "relates to parent".

I am trying to create an automation that'll then update the issue to match the status it is being linked to.

My lizard brain would think that this automation rule would work but I am getting 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):*  
*SCRT-152 (Work in Progress - 10145)*  
*![2024-02-14_12-02-37.png](/t5/image/serverpage/image-id/306420iFFEF9065E9D949E6/image-size/large?v=v2&px=999 "2024-02-14_12-02-37.png")*  
No idea what the error message is saying. They are the same issuetype and workflow so I wouldn't think there'd be much of an issue.  
If I can get this sorted out within the same rule I want to create one going the opposite direction where the analyst is in the parent alert and is adding a "relates to child" inward link to a new alert.  

Hope this is simple. Appreciate the assistance.


Answers:
author: Aron Entler
body: Just to make sure the issue could transition from Open -\> Done using automation I created a basic manual trigger transition. This worked correctly.

![2024-02-15_10-46-56.png](https://community.atlassian.com/t5/image/serverpage/image-id/306684iFCB0EC3E7D10C155/image-size/large?v=v2&px=999 "2024-02-15_10-46-56.png")

I also tried the applicable suggestions mentioned in this article with no success.

[Solved: Destination status could not be resolved. If using... (atlassian.com)](https://community.atlassian.com/t5/Jira-Service-Management/Destination-status-could-not-be-resolved-If-using-a-smart-value/qaq-p/1527767)


author: Kai Becker
body: Hi [@Aron Entler](/t5/user/viewprofilepage/user-id/5379947)

how does your workflow look like? Is there a transition going to this specific status in the issue the error occurs? Jira Automation can only use valid transitions between statuses.

comments: author: Aron Entler
body: Hi Kai,

Yes there is one. I also tried using my own account in the rule. I saw the question on the error code and ran that down already. Really hoped that would solve it.   

Aron


author: Kai Becker
body: Hi [@Aron Entler](/t5/user/viewprofilepage/user-id/5379947)

it might have something to do with the parent. I actually do not fully understand the rule or hierarchy of your issues.   
But if I'm getting it right, the related issues should get the status of the trigger issue, right? If so, you could try to transition to the status of the trigger issue instead of the parent.


author: Aron Entler
body: Thanks for the response [@Kai Becker](/t5/user/viewprofilepage/user-id/1178079)

Here's what I am trying to do. Hope it adds the clarity you're looking for.

I have 2 issues (ISSUE-30 and ISSUE-40). They are the same issuetype and using the same workflow.

The workflow allows the transition to happen but is hidden to only automation-addons-admin.

ISSUE-40 (status "Open") similar to ISSUE-30 (status "Pending Customer").

I want to link them together so ISSUE-30 is the parent of ISSUE-40 and for ISSUE-40's status to change to ISSUE-30's status.

I am using the "Relates to" link with outward being "relates to parent" and the inward being "relates to child"

I need this to happen whether I am in ISSUE-30 and link ISSUE-40 (relates to child) or if I am in ISSUE-40 (relates to parent). Therefore i can eventually make it so wherever ISSUE-30 goes in its transitional adventure ISSUE-40 follows along.

Using the original screenshot above and change it to "trigger issue" from "copy from parent". If I am in ISSUE-40 and set the link to "relates to parent" to ISSUE-30 then ISSUE-30 status is changed to ISSUE-40. The opposite of what I am looking for.

Hope this helps. Really appreciate the assistance.

<br />

Aron


author: Kai Becker
body: Hi [@Aron Entler](/t5/user/viewprofilepage/user-id/5379947)

thanks for clarification. I guess the other way round should also work, with checking for the opposite link type and also copy from trigger issue. I guess you could add it to the branching as well.

AFAIK the problem with parent is, that it is only working for hierarchy that is known to Jira, for example Task -\> Sub-task or Epic -\> Story  
You basically just linked two issues of the same level. Even though it is a parent link type, this is not a real parent child connection.


author: Kai Becker
body: [@Aron Entler](/t5/user/viewprofilepage/user-id/5379947) hope you are doing fine. has this been resolved? If so, please make sure to accept an answer to mark the question as resolved.

If it has not been resolved, please feel free to get back with an update.


author: Uday Kiran Bhaviri
body: Hi [@Aron Entler](/t5/user/viewprofilepage/user-id/5379947)

I guess first you need to get the parent issue status and then transition this issue to that status( make sure it exists) using some smart values.

comments: author: Aron Entler
body: I have no idea how to even do that to test it. ;-)


Tags: cloud

jira-service-management

jira-service-management-cloud