Forums

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

Timespent value incorrect for certain issues

Douglas Rosa
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 3, 2023

I'm sending a POST request to https://company/rest/api/3/search with body 

{

  "fields": [

    "timespent",

    "worklog",

    "issuetype",

    "labels",

    "customfield_10058",

    "customfield_10153"

  ],

  "fieldsByKeys": false,

  "jql": "issuetype not in (Epic) AND (status in (completed) AND resolution changed TO (done) DURING (\"2023/04/01\",\"2023/06/30\") AND status changed TO (completed) DURING (\"2023/04/01\",\"2023/06/30\")) AND project in (BRNK, BBS, POGGERS, AS1, MH1, UNA) and teams in (\"Rebel Fleet\") and \"issueType\" not in (\"Bug Sub-Task\", \"Sub-task\") AND (labels is empty or labels not in (Training, RampUpStory)) ORDER BY created DESC",

  "maxResults": 100,

  "startAt": 0

}

 In the response body, searching for BRNK-26726 shows a timespent value of 

"timespent": 298800. Translating from seconds to days gives about 3.5 days. However, inspecting the worklogs returned on this object shows it should be 2 weeks and 3h. What is the reason for this discrepancy?

1 answer

1 accepted

1 vote
Answer accepted
Douglas Rosa
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 3, 2023

Answering my own question. The worklog is being calculated using 5 days a week, 8 hours a day.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events