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

Saudamini Deshmukh January 10, 2022

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 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 : https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=server&tab=pricing

 

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 : https://marketplace.atlassian.com/apps/1211836/automation-for-jira-server-lite?hosting=server&tab=overview

 

Let me know if it helps,

Guilhem

Suggest an answer

Log in or Sign up to answer