Automatically close an issue based on field value

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

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

0 vote

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)

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

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.

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

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,296 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot