Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Timespent value incorrect for certain issues

Edited
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!
Oct 03, 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!
Oct 03, 2023 • edited Oct 04, 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