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 can i count time period between two transition, how time it took for that phase??

Shekhar Timsina Jun 06, 2018

I am trying to count time period between two transition, how time it took for  that phase??

2 answers

0 votes
Alexey Matveev [cPrime] Community Leader Jun 06, 2018

Hello,

After you counted the time period between two transitions, how do you want to show it? Do you need it for an external application or somewhere in Jira?

If you need it for an external application, then you can use Jira Rest Api. If you need it in Jira internally, then you can use Jira Java Api.

0 votes
Piotr Bojko Jun 06, 2018

Hello,

 

With following addon  - https://marketplace.atlassian.com/apps/1218767/smart-ql?hosting=server&tab=overview

 

You can write following report:

select AUX.ASISSUEKEY(ch.ISSUE), ch.NEWSTRING, ch.CREATED, lead(ch.CREATED, 1) over (partition by ch.issue order by ch.id) until from changes ch
where fieldtype = 'jira'
and field = 'status'

 and this will lead to 

Screenshot from 2018-06-06 16.00.43.png

First column is your issue, second is a status, third is from when this status was active, the last colunm indicates the time when issue was transitioned to next status.

 

Having such query you can easily compute a time period - just update the query to be more sophisticated.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

1,274 views 2 13
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