简体   繁体   中英

Jira - JQL report to show average number of resolved/created tickets over 30days

I'm trying to figure out how to create a JQL query that will pull back the average number of resolved tickets over the last 30 days and the average number of created tickets over the last 30 days...

I've used the created resolved report in Jira which is great, but now I just need the averages calculated..

I'm quite sure that this cannot be achieved using the out-of-the-box JQL .

You can do this easily using Jira's remote API , using jira-python for example :

from jira.client import JIRA
jira = JIRA(basic_auth=('admin', 'admin'))    # a username/password tuple
props = jira.application_properties()
# Find all issues from the last month:
issuesResolved = jira.search_issues('resolved > startOfMonth()')
issuesCreated  = jira.search_issues('created > startOfMonth()')
# and so on...

What should the output be exactly? average per day for the last 30 days? average for every 30 months?

Anyway, if you need help coding that let me know... good luck !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM