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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automatic Status Change when the created days is greater than 2 days

Hi ,

 

Is there a way to change the status automatically when the issue is created before than a period of 2 days

 

We are using Script runner , I tried to do with Fast Transition & Listener but not worked well

1 answer

1 accepted

0 votes
Answer accepted

@Sreeram pullisserry  , for this use case, look at the escalation services from scriptrunner plugin

 

https://scriptrunner.adaptavist.com/5.0.2/jira/escalation-service.html

@Fazila Ashraf : Hi Fazila,

I tried using escalation services but i got the following error.

Time (on server): Wed Nov 04 2020 14:57:04 GMT+0530 (India Standard Time)

The following log information was produced by this execution. Use statements like:log.info("...") to record logging information.

2020-11-04 04:27:04,241 ERROR [utils.WorkflowUtil]: In-depth checking of each condition follows to determine why the action was not allowed. 
2020-11-04 04:27:04,242 ERROR [utils.WorkflowUtil]: 
It seems that you have tried to perform a workflow operation (In Progress Sustaining) that is not valid for the current state of this issue (JTP-2). The likely cause is that somebody has changed the issue recently, please look at the issue history for details.
2020-11-04 04:27:04,242 ERROR [utils.WorkflowUtil]: 
2020-11-04 04:27:04,242 ERROR [utils.WorkflowUtil]: Not attempting transition because of above errors.
2020-11-04 04:27:04,242 ERROR [jobs.EscalationService]: Escalation Service (Esc) failed for issue JTP-2
java.lang.Exception
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2$_closure5$_closure6.doCall(EscalationService.groovy:153)
 at com.sun.proxy.$Proxy3505.accept(Unknown Source)
 at java_util_function_Consumer$accept.call(Unknown Source)
 at com.onresolve.jira.groovy.jql.AbstractPagerExecutor$_forEachInternal_closure2.doCall(AbstractPagerExecutor.groovy:68)
 at com.onresolve.jira.groovy.jql.AbstractPagerExecutor.forEachInternal(AbstractPagerExecutor.groovy:67)
 at com.onresolve.jira.groovy.jql.PagerExecutor.forEachIssue(PagerExecutor.groovy:26)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2$_closure5.doCall(EscalationService.groovy:137)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2$_closure5.doCall(EscalationService.groovy)
 at com.onresolve.scriptrunner.jobs.JiraIdentitySwitchingService.switchIndentityAndExecuteInternal(JiraIdentitySwitchingService.groovy:45)
 at com.onresolve.scriptrunner.jobs.JiraIdentitySwitchingService.switchIndentityAndExecute(JiraIdentitySwitchingService.groovy:27)
 at com.onresolve.scriptrunner.jobs.IdentitySwitchingService$switchIndentityAndExecute.call(Unknown Source)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2.doCall(EscalationService.groovy:135)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2.doCall(EscalationService.groovy)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl$_execute_closure1.doCall(DiagnosticsManagerImpl.groovy:350)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl$_execute_closure1.doCall(DiagnosticsManagerImpl.groovy)
 at com.onresolve.scriptrunner.runner.ScriptExecutionRecorder.withRecording(ScriptExecutionRecorder.groovy:13)
 at com.onresolve.scriptrunner.runner.ScriptExecutionRecorder$withRecording$12.call(Unknown Source)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl.execute(DiagnosticsManagerImpl.groovy:348)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsExecutionHandler$execute$31.call(Unknown Source)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService.execute(EscalationService.groovy:133)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService.execute(EscalationService.groovy)
2020-11-04 04:27:04,247 ERROR [utils.WorkflowUtil]: In-depth checking of each condition follows to determine why the action was not allowed. 
2020-11-04 04:27:04,247 ERROR [utils.WorkflowUtil]: 
It seems that you have tried to perform a workflow operation (In Progress Sustaining) that is not valid for the current state of this issue (JTP-1). The likely cause is that somebody has changed the issue recently, please look at the issue history for details.
2020-11-04 04:27:04,247 ERROR [utils.WorkflowUtil]: 
2020-11-04 04:27:04,247 ERROR [utils.WorkflowUtil]: Not attempting transition because of above errors.
2020-11-04 04:27:04,248 ERROR [jobs.EscalationService]: Escalation Service (Esc) failed for issue JTP-1
java.lang.Exception
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2$_closure5$_closure6.doCall(EscalationService.groovy:153)
 at com.sun.proxy.$Proxy3505.accept(Unknown Source)
 at java_util_function_Consumer$accept.call(Unknown Source)
 at com.onresolve.jira.groovy.jql.AbstractPagerExecutor$_forEachInternal_closure2.doCall(AbstractPagerExecutor.groovy:68)
 at com.onresolve.jira.groovy.jql.AbstractPagerExecutor.forEachInternal(AbstractPagerExecutor.groovy:67)
 at com.onresolve.jira.groovy.jql.PagerExecutor.forEachIssue(PagerExecutor.groovy:26)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2$_closure5.doCall(EscalationService.groovy:137)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2$_closure5.doCall(EscalationService.groovy)
 at com.onresolve.scriptrunner.jobs.JiraIdentitySwitchingService.switchIndentityAndExecuteInternal(JiraIdentitySwitchingService.groovy:45)
 at com.onresolve.scriptrunner.jobs.JiraIdentitySwitchingService.switchIndentityAndExecute(JiraIdentitySwitchingService.groovy:27)
 at com.onresolve.scriptrunner.jobs.IdentitySwitchingService$switchIndentityAndExecute.call(Unknown Source)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2.doCall(EscalationService.groovy:135)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService$_execute_closure2.doCall(EscalationService.groovy)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl$_execute_closure1.doCall(DiagnosticsManagerImpl.groovy:350)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl$_execute_closure1.doCall(DiagnosticsManagerImpl.groovy)
 at com.onresolve.scriptrunner.runner.ScriptExecutionRecorder.withRecording(ScriptExecutionRecorder.groovy:13)
 at com.onresolve.scriptrunner.runner.ScriptExecutionRecorder$withRecording$12.call(Unknown Source)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsManagerImpl$DiagnosticsExecutionHandlerImpl.execute(DiagnosticsManagerImpl.groovy:348)
 at com.onresolve.scriptrunner.runner.diag.DiagnosticsExecutionHandler$execute$31.call(Unknown Source)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService.execute(EscalationService.groovy:133)
 at com.onresolve.scriptrunner.canned.jira.jobs.EscalationService.execute(EscalationService.groovy)



Could you help to figure this out 

I Figured it out , it was due to wrong entry of the Transistion ID, Huge Thanks @Fazila Ashraf 

Like Fazila Ashraf likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you