Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ScriptRunner CloneIssue is not keeping status



I'm trying to use the cloneIssue function in a script.

Everything works fine but i just wanted to know if there is a way to keep the status of the original issue.

Is a parameter like "CloneIssue.FIELD_STATE" exist ?



ps: if you're interested by the subject, i suggest you tu read this thread:

1 answer

Hi Laurent, 

When you clone an issue you basically create a new issue, whilst copying all field data from your original issue. Since you create a new issue it is natural that it gains the status your 'Create' transition leads to. With that in mind, if you want your clones to gain the same status as your original issue, you'll need to transition it to this status in your code.

Hi Ivan,

Thank you for your answer.

Indeed it's a solution, i just hopped that something more simple was available !



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

555 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you