Forums

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

Jira Automation: copy files from issue type (product change) to story linked to this issue type

Mohamed Saad Taha
Contributor
February 6, 2023

HI all, Iam using jira automation over software project (data center version) to copy some filed from issue type I create to story linked to this issue type when I create story

 

 

but the problem when I create the automation rule it execute the action over the issue type I create not the story and they mention if i want to execute over the stroy i have to do below 

Rule executes when an issue is linked to another issue. {{issue}} will always refer to the source issue, so if ISSUE-A is blocked by ISSUE-B, this rule will execute on ISSUE-B. To access ISSUE-A, use {{destinationIssue}}, and to access the link type, use {{linkType}} (e.g. {{linkType}}='Duplicate').

but I don't know where I have to mention this. 

screenshot below.

Linked issue Automation.JPG

 

 

 

 

2 answers

1 accepted

0 votes
Answer accepted
Mohamed Saad Taha
Contributor
February 7, 2023

@Jeroen Poismans 

I would like to thank you so much for your efforts and replies but unfortunately all smart variable didn't work with me at all but finally I found another solution and it work with me as below 

 

Linked issue Automation5.JPG

2 votes
Jeroen Poismans
Community Champion
February 6, 2023

Hi,

 

You would typically use these Smartvalues in the Edit, etc ... actions where you can set a value as in this example:

Screenshot 2023-02-06 at 11.38.36.pngRegards,

 

Jeroen

Mohamed Saad Taha
Contributor
February 6, 2023

@Jeroen Poismans 

this will not work for the required issue it still update the source issue can you please test it 

below is my configuration by be Iam mistaken 

Linked issue Automation2.JPG

Jeroen Poismans
Community Champion
February 6, 2023

Hi,

Depending on the type of your field, the syntax you are using for Smartvalue of Customfield is not correct. Should look like this:

{{issue.customfield_10913}}

If the update occurs on the wrong issue have a look at the difference between:

{{issue.customfield_10913}}

AND

{{destinationIssue.customfield_10913}}

 

Depending on the type of custom field you might need to still add something to get the actual value. Have a look at this community post:

https://community.atlassian.com/t5/Jira-Service-Management/how-to-add-Custom-Field-Smart-Value/qaq-p/1976220

Regards,

 

Jeroen

Like Mohamed Saad Taha likes this
Mohamed Saad Taha
Contributor
February 6, 2023

@Jeroen Poismans 

thanks a lot for your support it is high appreciated. but problem not solved yet my filed type is User Picker (single user)     Filed name is (SA)

I try below but didn't work for both sides

{{issue.SA.value}}

{{destinationIssue.SA.value}}

Is there different options for this smart value ?

thanks alot 

Jeroen Poismans
Community Champion
February 6, 2023

Hi, 

That would depend on what property of the user you would like.

Have a look at this page:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/#User-properties

There you will see properties like emailAddress or displayName ... Maybe try one of those in the same way:

{{issue.SA.displayName}}

 

Regards,

Jeroen 

Like Mohamed Saad Taha likes this
Mohamed Saad Taha
Contributor
February 7, 2023

@Jeroen Poismans 

I try to copy OOB filed assigne and I try both below 

{{destinationIssue.assignee}}

{{issue.assignee}}

but both action is performed in the source issue and i want to perform over destination issue :( :(

Suggest an answer

Log in or Sign up to answer