Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Might there be a way to automatically transition an inactive issue based on an elapsed time interval?

Dave Donnelly [Sensata]
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.
June 28, 2011

Looking for a method of parking inactive issues by automatically transitioning them to an inactive status after a time period has elapsed. Any plugins that might satisfy this requirement?

Many thanks,

D

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Nic Brough -Adaptavist-
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.
June 28, 2011

You don't need plugins - you can do it with Jelly scripts.

http://confluence.atlassian.com/display/JIRA/Jelly+Escalation covers "escalation" but the principle is the same - run a filter for "in status X and updated date is over Y days", and add a Jelly service that runs regularly and transitions them all into the inactive status.

1 vote
Colin Goudie
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.
June 28, 2011

The guts of such a jelly script might look like

<jira:Login username="username" password="password">
<!-- Value below is the filter id -->
<core:set var="closedPendingIssueToClosedFilter" value="10572" />

<!-- Run the SearchRequestFilter -->
<jira:RunSearchRequest filterid="${closedPendingIssueToClosedFilter}" var="issues" />

<core:forEach var="issue" items="${issues}">
<core:set var="workflowStep" value="52" /> <!-- Closed due to no response id -->
<core:set var="resolutionStep" value="5" /> <!-- Resolution id -->

<log:warn>Closing inactive issue ${issue.key}</log:warn>

<jira:TransitionWorkflow key="${issue.key}" user="${issue.assignee}" assignee="${issue.assignee}" workflowAction="${workflowStep}" comment="${message}" resolution="${resolutionStep}"/>
</core:forEach>
</jira:Login>

TAGS
AUG Leaders

Atlassian Community Events