Forums

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

USing automationrules in jira need to copy vaues from one project to another while cloning

mummareddy supriya
Contributor
June 9, 2024

When we clone the ticket from one project to another, we need the values (Issue ID and Project) to be auto populated in the reference project. 

Issue ID from parent project should be updated in External Issue ID field.

Project name from parent project should be updated in Requesting Project field. 

3 answers

1 accepted

1 vote
Answer accepted
Vikrant Yadav
Community Champion
June 9, 2024

Hi @mummareddy supriya  You need to create an automation rule for cloning an issue in second project. In action item >> Select Clone >> In Choose field to set select both the field  External Issue ID and Requesting Project 

External Issue ID put smart value : {{issue.key}}

Requesting Project : {{issue.project.name}}

Thanks

mummareddy supriya
Contributor
June 9, 2024

@Vikrant Yadav  in the same way i created the automation rule .as shown in the attachment.after clone the ticket i'm unable to Find  External Issue ID .may i know the reason pleaseautomation1.PNG

 In Choose field to set ,i'm unable to find Requesting Project requesting.PNG

After cloned the reference image is attached here ,please find belowcloned.PNG

kindly suggest me here.thanks in advance

Vikrant Yadav
Community Champion
June 10, 2024

@mummareddy supriya  It seems that field is not supported, that's why not showing in this dropdown.

May I know the field type, is it an external plugin field? Field is mapped with the project, visible on edit screen ? 

 

mummareddy supriya
Contributor
June 10, 2024

@Vikrant YadavThe External Issue ID field exists in the parent project.I need to clone it to the another project.This field is present in the parent.Attaching the images here, please guide me.
.

thanks in advance

Vikrant Yadav
Community Champion
June 10, 2024

@mummareddy supriya  Try to add this field in EPP project as well.

If field is not visible, you can try to add JSON in Additional field : 

{
"fields": {
"customfield_10307": "{{issue.key}}"
}
}

 

Check audit log for error. 

mummareddy supriya
Contributor
June 10, 2024

@Vikrant Yadav its it possible to get the project url using automation rule  instead of project name,if yes can you kindly help me here.Now with you suggestion i'm able to get External issue ID 

External Issue ID put smart value : {{issue.key}}

Requesting Project : {{issue.project.name}}

mummareddy supriya
Contributor
June 10, 2024

@Vikrant Yadav can you please suggest me here like how can i get project url instead of project name.

thanks in advance 

Vikrant Yadav
Community Champion
June 10, 2024

@mummareddy supriya  Here is the smartvalue :

project url : {{baseUrl}}/browse/{{project.key}}

issue key url : {{baseUrl}}/browse/{{issue.key}}

Hope it works for you!

Like mummareddy supriya likes this
0 votes
Clara Belin-Brosseau_Elements
Atlassian Partner
July 18, 2024

Hello @mummareddy supriya

 

If you're seeking for an easier way to clone issues and map the fields between source and clone, you can try our app Elements Copy & Sync that allows you to clone and sync a full hierarchy of issues with all their content (summary, description, custom fields, comments, attachments, etc).

 

You can check our guide here.

 map-reporter-to-assignee-copy-and-sync.pngThe app is for free during 30 days (and it stays free under 10 users).

 Kind regards,

Clara

0 votes
Geethanjali Katagani
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.
June 9, 2024

Hi @mummareddy supriya ,

First, you need to get the issue ID in the parent issue and store that issue ID in a text field. If you do not have a text field to store the issue ID, create a new one. To get the issue ID in the parent issue ID field, please use the jira Automation or ScriptRunner plugin.

After obtaining the issue ID, create an automation rule. When an issue is cloned or created, copy the parent issue ID from the cloned or linked issue.

"The project name from the parent project should be updated in the Requesting Project field." This can also be achieved using automations.

Let me know if you have any questions on this.

Regards,
Geethanjali

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events