How to update the status value using groovy script

Peruma Chinnasamy August 24, 2022

Hi Team,

I am using Jira DC v8.20.21. One our client request to auto close the ticket after certain time period. 

Eg:

if story status marked as "Ready for Delivery" after 15 days automatically close the ticket.

So how to update the "Status" value as "Close" by using groovy script.

Kindly anyone help on this to develop the code  

 

Thanks and Regards

Peruma.C

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2022

Status is not really a field, it's a view of where an issue is in the process (workflow).

You can't "set" a status at any time other than creating a new issue.  You have to move issues through the workflow, so that they take new status from your process.

There's a few examples of scripts that can do this at https://library.adaptavist.com/search?term=transition

Peruma Chinnasamy August 25, 2022

Hi Nic Brough _Adaptavist

Thank you for your response. Let me check as per your input.

Thanks and Regards

Peruma.C

Suggest an answer

Log in or Sign up to answer