Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set Withdrawn Status to Resolved Based on Condition

Ray Miller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 19, 2022

Have Withdrawn status -> All in workflow that I would like to set to resolved only if Time Spent on issue is greater than zero. How can I accomplish this?

1 answer

1 accepted

0 votes
Answer accepted
Guilhem Dupuy
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.
November 21, 2022

Hello @Ray Miller ,

You can achieve this from the advanced search, filtering the issues based on the following JQL query : 

status = Withdrawn AND timespent > 0

Then, from the search menu you can perform a bulk change to transition issues to the desired status. However, a transition from "Withdrawn" to "Resolved" status must exist in your Workflow in order to be able to perform this action, so make sure to add this transition in your current Workflow if it doesn't already exist.

Let me know if it solves your problem,

Guilhem

Ray Miller
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2022

Much appreciated Guilhem.

I would like to accomplish such through a workflow post function or automation.

Guilhem Dupuy
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.
November 28, 2022

Hi @Ray Miller ,

You can definitely use this query in an Automation rule;

You could schedule it (using "scheduled" trigger) to run once a day and, for all issues matching the JQL query, transition them to "Withdrawn" status.

If you want this transition to be unavailable to users, you could add a Workflow condition on it, allowing only users in the project role "atlassian-addons-project-access" to perform it (aka only jira automation in your case).

If it answered your question, please click on "Accept Answer" in order to help other users of the community to better find what they look for in the future :) 

Suggest an answer

Log in or Sign up to answer