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

How to use a post-function to delete the field values when the issue is clone.

Suppose, I have created a story issue type name 123 and if I clone this story issue type the values from the original issue must be deleted.(Like some custom fields values and some linked issues must be deleted after cloning). 

How to do that?

Is it possible through post function if yes how to write a postfunction for that?

1 answer

0 votes
Guilhem Dupuy Community Leader Jan 11, 2022

Hi @Saudamini Deshmukh ,

You can indeed achieve that using a post function, that you would execute at the creation of a new issue. You may need to download the following add-on (Scriptrunner) which will give you access to new post functions such as the "Clear field value" post function, that you are going to need to achieve what you want to :


You could also achieve the same goal using an Automation rule that you trigger when an issue is created. This would require the use of the following addon, which is free :


Let me know if it helps,


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