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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,470
Community Members
 
Community Events
184
Community Groups

Unable to set TimeTracking using JIRA API

Hi all, 
I have a problem with editing issue trying to set originalEstimate using API.
I'm using basic authentication for user with admin pemission, I create a new issue making POST call to this url {{jira_url}}/rest/api/3/issue with the following body 
{

    "fields": {

        "project":

        {

            "key": "XXX"

        },

        "summary": "Marketing Advertising",

        "description": {

      "type": "doc",

      "version": 1,

      "content": [

        {

          "type": "paragraph",

          "content": [

            {

              "text": "Analisi e Definizione Contenuti strategico. Analisi della concorrenza, studio della percezione dell'immagine e dell'identità aziendale presso il \"pubblico\", analisi del mercato di appartenenza e conseguente definizione delle strategie di comunicazione e del marketing operativo. Determinazione e definizione dell'organizzazione dei documenti strategici commerciali (Cross media strategy - Concept publishing). Definizione dei contenuti per la la predisposizione delle CH.",

              "type": "text"

            }

          ]

        }

      ]

    },

        "issuetype": {

            "name": "Task"

        }

    }

}
and then I update the issue created making a PUT call to this url {{jira_url}}/rest/api/2/issue/{{issueKey}} with the following body


    "fields": {

        "timetracking": [

            {

                "edit": {

                    "originalEstimate": "3d 0h"

                }

            }

        ]

    } 

}
The result message is 
{

    "errorMessages": [],

    "errors": {

        "timetracking": "Field 'timetracking' cannot be set. It is not on the appropriate screen, or unknown."

    }

}
but if I try to set originalEstimate by UI interface I can do that. How I can enable timetracking field globally?
Note that:
- I have verified on Settings > Issues > TimeTracking and seems to be enabled
Schermata 2022-01-20 alle 10.33.37.png
- I have added Timetracking field on Settings > Issues > Screen for Kanbug Bug Screen and Kanban Default Issue Screen

4 answers

1 vote
Arthur
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!
Feb 04, 2023

You need to add TimeTracking to your screens

  1. -> Projects -> "Project Name" -> Project settings (left pane, bottom) -> Screens (left pane, middle)
  2. For all screen configuration schemes:
    1. For all screens in the scheme:
      1. in Actoins chose -> Configure Screen
      2. Scroll to the bottom of the list
      3. Add field "Time Tracking"

usually is is enough to set only Default Issue

Thank you for the suggestion and it worked for me.

I also have this problem. Did you find a solution?

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 20, 2022

For adding worklog follow the API here

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs/#api-rest-api-3-issue-issueidorkey-worklog-post

Let me know if you have any further questions

Thanks,

Pramodh

Hi @Pramodh Mthis is not useful to me.
I don't want to insert a worklog but an originalEstimate just created the ticket

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 20, 2022

Hi @Cristina Del Fabbro 

Welcome to the community 🙂

Try to include the below body in your request in your edit issue API

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get

"{ "timetracking": [ { "edit": { "remainingEstimate": "4d", "originalEstimate": "1w 1d" } } ] }"

Thanks,

Pramodh

@Pramodh M, thanks for your replay but not works. 
I I had already tried adding remainingEstimate but the result message is the same :-(

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events