Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How to label a ticket automatically based on time of transition change?

Hello.

Is it possible to automatically add a label to a ticket based on the time difference between two ticket states and whether or not it has linked issues?

For example:

  • If the ticket has no linked issues and the duration time between “In-Queue” to “Waiting for Approval” >= 30 mins - label  it as L2.
  • If the ticket has no linked issues and the duration time between “In-Queue” to “Waiting for Approval” < 30 mins - label  it as L1.
  • If the ticket has linked issues - label it as L3.

Many thanks - Ian

 

1 answer

1 accepted

2 votes
Answer accepted
florianper Community Leader Jan 06, 2022

Hello , 

 

Time between status is by expérience hard to get! You’ll need to create a lot a field to get the information and after that you’ll have to compare date in either a condition (then you have to create 3 transitions, each one  have one of the label , the condition show only one of the transition ) 

You can also do some kind of script with script runner where you go into the audit logs of the issue and you try to get the result by comparing date with condition … but this is really a lot of work and you should consider doing this only :

- if this is a crucial need 

- if you think the learning benefit is enough to take the time to do this.

 

Doing what you want is waaaaay more easy in JSM with SLA, maybe you can look at this too ! 

hope this help !

Thank you for replying @florianper .  I'll look into this further, I just thought this may be easier to do than it obviously is.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

518 views 19 25
Read article

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