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

How to fire an event when specific time pass on jira script runner

phellipe_silva January 7, 2016

Hello everybody,

I would like to create an automation which sends an email when an issue is inactive for X hours. My idea is to fire an event when a specific time of inactivity is reached (using script runner), and then use a custom listener to send the email. 

Unfortunately I can't find a way to do this. Can anyone help me?

 

JIRA v7.0.0
JIRA Service Desk v3.0.0
Adaptavist ScriptRunner for Jira v4.2.0.1

3 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
GabrielleJ
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.
January 7, 2016

Not exactly what you want, but take a look at the JIRA SR Escalation Service or just create a script and put it in your preferred cron scheduler that do what you need.

phellipe_silva January 7, 2016

Thanks Gabrielle. Any suggestion is welcome. I will check this out.

1 vote
JamieA
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.
January 7, 2016

Use an escalation service, and put any matching filters through an any-state-to-any-state transition, called for ex: "Escalate". Then you can send an email based on that transition.

0 votes
phellipe_silva January 13, 2016

I would like to thanks @Gabrielle Bautista [ACP-JA] and @Jamie Echlin [Adaptavist] for the support and quick anwsers. Both suggestions worked very well. Unfortunatelly I can accept just one anwser, so I will choose the one who replied first.

GabrielleJ
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.
January 13, 2016

Those are very kind words :) Glad we can help you out (Jamie and team actually owns JIRA SciprtRunner add-on :) )

JamieA
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.
January 13, 2016

I am very grateful when the community answer questions so I Gabrielle a vote too ;-)

TAGS
AUG Leaders

Atlassian Community Events