Automatically close an issue based on field value

Ruban Jayathas May 18, 2014

We receive feedback from our customers which are created as tickets in Jira. I want to automatically close those tickets where feedback is good and dont need any further action. How can I achieve this ?

3 answers

0 votes
Alex Perez
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.
May 18, 2014

Modify your workflow to create a new transition to close issues and set that this transition can only be executed by a user "jiraservice".

Then activate Jelly and create a jelly script to search all issues matching your criteria (rating = excelent and status != closed), and execute that transition against the search result.

--> https://confluence.atlassian.com/display/JIRA/Jelly+Tags#JellyTags-Samplescripts

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.
May 18, 2014

Set up your workflow to allow the closing.

Then, use a listener to listen for whatever change it is you want to trigger the close.

(I can't tell you much more than that, it's not clear exactly what your trigger is here)

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.
May 18, 2014

Ok, create a listener that listens for the "create" event, or use a post-function that can trigger it - both should have code that says "if rating == excellent, issue the close tranition"

The easiest way to do this is probably to use "fast track transition" which you can find in the "Script Runner" addon. See https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Fast-tracktransitionanissue

Ruban Jayathas May 18, 2014

Good feedback is when the field rating is 'excellent'. When a ticket is opened in Jira where the field = 'excellent' the issue should be automatically closed.

0 votes
Svante Gustafsson Björkegren
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.
May 18, 2014

Hi Ruban,

Could you elaborate a bit more on the criteria here? What is a good feedback? Is it when certain fields are filled in? If that is the case you can have a "fast-track" post-function that closes the ticket when the appropriate fields are updated.

Cheers,

// Svante

Suggest an answer

Log in or Sign up to answer