Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating logged time to include linked tickets from other projects

Chris DeLess
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 27, 2020

Two Jira projects: one client/business, other software.

Support and various other client-related tasks are tracked on the client project. If a code change is required in the platform then this results in a linked ticket in the software project. Dev logs their hours under the software project.

We have the Timetracker plugin from EverIT.

Accounting now wants a report showing all hours related to the client which includes dev time to the platform from the linked tickets.

I'm sure this has been done before, I wasn't successful in finding an example.  

Any thoughts/recommendations?

3 answers

0 votes
Yevgen Lasman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2020

If you would use Power Custom Fields or Power Scripts the code is even simpler (you may remove issue for custom field as it will be in the current issue context already):

interval total_worklog = %issue%.timeSpent;

for(string i in getLinkedIssues(issue)){
    total_worklog += %i%.timeSpent;
}

And getLinkedIssues method has other options where you can adjust particular linking type and/or direction.

0 votes
Bjoern Veith
Contributor
October 27, 2020

I have to admit I didn't understand your current architecture to 100. 

But to sum up the hours there are various options. 

Use an addon to retrieve the logged hours from the linked issued and post them on the main issue. You may already have an addon which can do this, JMWE, Scriptrunner or Automation for jira will do the job. 

0 votes
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2020

Hi @Chris DeLess 

You would need an app to do that at least on server. ScriptRunner for Jira can help you achieve that. Take a look at a similar example here.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.1
TAGS
AUG Leaders

Atlassian Community Events