extractig worklog for a period

Hi.

I'm trying to export the time spent by my team in a given period. (the current day in the following exemple)

I found something using the rest api but the result is hardly usable in excel :

https://jira.netgroupesni.fr/jira/rest/api/2/search?jql=category%20=%20%22DDLD%20TMA%22%20and%20worklogDate%3E=startOfDay()&fields=worklog

 

Is there any other way to get this informations, or may be can ai personalize de fields I get in the rest api?

I juset need  user, key of the ticket and time spent

 

Thank you

 

4 answers

to precise the question, here is an exempla of the answer when asking the previous URL : (only the first result)

{
"expand":"schema,names",
"startAt":0,
"maxResults":50,
"total":19,
"issues":[{
"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id":"45025",
"self":"https://jira.netgroupesni.fr/jira/rest/api/2/issue/45025",
"key":"QS0075-16",
"fields":{
"worklog":{
"startAt":0,
"maxResults":20,
"total":1,
"worklogs":[{
"self":"https://jira.netgroupesni.fr/jira/rest/api/2/issue/45025/worklog/40700",
"author":{
"self":"https://jira.netgroupesni.fr/jira/rest/api/2/user?username=BD",
"name":"BD",
"key":"bd",
"emailAddress":
"bruno.d@b.com",
"avatarUrls":{
"48x48":"https://jira.netgroupesni.fr/jira/secure/useravatar?ownerId=bdumeny&avatarId=14400",
"24x24":"https://jira.netgroupesni.fr/jira/secure/useravatar?size=small&ownerId=bdumeny&avatarId=14400",
"16x16":"https://jira.netgroupesni.fr/jira/secure/useravatar?size=xsmall&ownerId=bdumeny&avatarId=14400",
"32x32":"https://jira.netgroupesni.fr/jira/secure/useravatar?size=medium&ownerId=bdumeny&avatarId=14400"
},
"displayName":"D Bruno",
"active":true,
"timeZone":"Europe/Paris"
},
"updateAuthor":{
"self":"https://jira.netgroupesni.fr/jira/rest/api/2/user?username=BDUMENY",
"name": "BD",
"key":"bd",
"emailAddress":"bruno.d@b.com",
"avatarUrls":{
"48x48":"https://jira.netgroupesni.fr/jira/secure/useravatar?ownerId=bdumeny&avatarId=14400",
"24x24":"https://jira.netgroupesni.fr/jira/secure/useravatar?size=small&ownerId=bdumeny&avatarId=14400",
"16x16":"https://jira.netgroupesni.fr/jira/secure/useravatar?size=xsmall&ownerId=bdumeny&avatarId=14400",
"32x32":"https://jira.netgroupesni.fr/jira/secure/useravatar?size=medium&ownerId=bdumeny&avatarId=14400"
},
"displayName":"D Bruno",
"active":true,
"timeZone":"Europe/Paris"
},
"created":"2017-11-15T08:35:55.000+0100",
"updated":"2017-11-15T08:35:55.000+0100",
"started":"2017-11-15T08:35:00.000+0100",
"timeSpent":"3h",
"timeSpentSeconds":10800,
"id":"40700",
"issueId":"45025"
}]
}
}
},{

0 vote
Alexey Matveev Community Champion Nov 15, 2017

Hello,

Why you can not write such a filter and export it to csv format?

Alexey Matveev Community Champion Nov 15, 2017

Go to issues->search and choose advanced. Enter the same JQL as you entered in your REST call. Then add column timespent. Then use button Export and choose csv. You will get the csv file with timespent column. You can import the file into Excel.

Read more about adding columns here

https://confluence.atlassian.com/adminjiraserver072/configuring-the-default-issue-navigator-829827009.html

And read more about export here

https://confluence.atlassian.com/jiracoreserver073/working-with-search-results-861257284.html

I tried it (in the ticket browser) bud I could not find the way of extracting worklogs.

(I'm quite new in using JIRA)

Alexey Matveev Community Champion Nov 15, 2017

Your rest call will return the same information. If you do not want to write a program then you could use, for example, Easybi plugin to get the information you need.

the "timespent" column is not possible, it sums all the time spent, even if ihe tilme was spent in the previous period.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

925 views 3 12
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you