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

Removing Fix Version value when issue is cloned?

Is there a way to remove values from select fields when you clone an issue? We are specifically trying to remove the Fix Version from issues when they are cloned.

I do have scriptrunner in my Jira instance if that helps. I have been looking for a script to do this in a post function, but haven't been able to find anything that doesn't deal with custom fields and since Fix Version is a system field, they aren't working.

1 answer

 Hey @Laci 

A similar use case can be found here: Update Fix Version through Script Listener.

Since cloning takes all aspects of the ticket you'll need to set up a script listener to look for 'If the ticket is a 'Cloned Issue' then remove the Fix Version. 

I do not recommend putting a post function in the workflow as you could run into issues with newly created tickets. And when an issue is 'Cloned' it goes through the create process again like a brand new issue. 

Let me know if you have any further questions! :)

Adaptavist Library 

Adaptavist Docs ScriptRunner for Jira Server 


@Brittany Wispell The post function doesn't really matter for us as the particular issue type we are interested in shouldn't have a Fix Version upon creation anyway... It requires a review process.

As for the issue you've shared above, it doesn't seem like that would work for my use case. You'll have to forgive me, I'm not really one for writing code, I'm just an implementer so any assistance you could provide is very much appreciated.

I have tried using this script from the Adaptivist Library and it throws a lot of errors and will not work.

Suggest an answer

Log in or Sign up to answer

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