I wanted to get the total worklog of an user for present today.
For eg : I worked total of 6 hours today on various tasks, I can see this in JIRA Dashboard.
How, do I fetch this value(6 hours) using the JIRA Rest API or a JQL query.
Thanks,
Ranveer
Community moderators have prevented the ability to post new answers.
SQL for JIRA is a new add-on available on the Marketplace which resolves it easily:
issue in sql(" SELECT DISTINCT I.KEY FROM ISSUEWORKLOGS W INNER JOIN ISSUES I ON W.ISSUEID = I.ID WHERE I.JQL='updated >= startOfDay() AND participants = <username>' AND W.AUTHOR='<username>' ")
How it works?
If you want to display that information on a JIRA Dashborad you could use the complementary free SQL for JIRA Reports and Gadgets add-on to a visualization of the data embedded in a JIRA gadget.
I've updated it to make it more efficient according to the JQL provided by an Atlassian Support engineer and to transform the SQL results into a JQL function :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.