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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

685 views 6 13
Read article

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