Post functions in a workflow

Niranjan Babu January 30, 2018

Hi,

We have the below requirement,

When any ticket is CLOSED with resolutions 

1.Cancelled

2.Duplicate

3. Wont Fix/Do,

then the FixVersion of the ticket should be cleared and should have no value.

 

Let me know if we can achieve it via POST functions. We have script runner add-on in our JIRA instance. Thanks

 

Regards

Niran

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2018

Hello, try like this:

if (issue.resolution == "Cancelled" || issue.resolution == "Duplicate" || issue.resolution == "Wont Fix/Do" ) {
issue.setFixVersions([])

}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events