Forums

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

Have the need to Clone an issue to another project via workflow transition

Brian Taylor
Contributor
April 17, 2018

I have a requirement to clone an issue during transition to other projects based on the value of a custom field 

If the value of custom field that has a value - based on that value will equal a project 

Example

Project List fields has value of Technology Group, Database Group 

If the value = Technology Group clone the issue to a project associated with Technology 

If the value = Database Group = clone the issue to the project associated with eh database group 

Looking for some sort of code or add-on that will allow a workflow transition to clone issues to other projects

2 answers

1 accepted

0 votes
Answer accepted
Brian Taylor
Contributor
April 20, 2018

I also found that Scriptrunner has a Post Function Clones an Issue, and Link where you can set a condition based on a custom field value to perform the clone action. 

1 vote
M Amine
Community Champion
April 17, 2018

Hi Brian,

I think the easiest way to do what you want is by using Jira Automation by following these steps : 

  1. When : "Issue Transitionned"
  2. Add new condition : "Compare condition" {{issue.status.name}} equals "YOUR STATUS"
  3. add a "Branch rule"  (on Current issue")
    1. Add new condition"Compare condition" {{issue.Custom Field.value}} equals "Technology Group"
    2. Add new action : Clone issue (you can chose your Technology project)
  4. add a "Branch rule"  (on Current issue")
    1. Add new condition"Compare condition" {{issue.Custom Field.value}} equals "Database Group"
    2. Add new action : Clone issue (you can chose your Database project)

et voila, you r done. 

cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events