Forums

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

Unable to set TimeTracking using JIRA API

Cristina Del Fabbro
January 20, 2022
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

2 answers

0 votes
Glenn Price
June 28, 2017

Cheers. So I am guessing I would need to setup and configure a 'crowd' server first of all?

Glenn 

Nic Brough -Adaptavist-
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 Champions.
June 28, 2017

No, because you already have one, sort of. 

JIRA and Confluence have an "embedded crowd" which provides their internal directories.  The embedded crowd can't be extended or used for most other applications, but you can tell a Confluence system to use a JIRA's embedded Crowd.  That's what the doc is about.

If you do that with your Confluence, you will be able to manage your JIRA and Confluence users purely in JIRA.

Glenn Price
June 28, 2017

Ta.

 

So is it just the below i have to follow?

 

1. Connect Confluence to a JIRA application:

2.Set up the JIRA user directory in Confluence:

 

Nic Brough -Adaptavist-
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 Champions.
June 28, 2017

Yes, just follow the steps in the second part of the doc.

Glenn Price
July 3, 2017

Is there currently an issue with the site? Can't seem to view several of the support/config docs :(

Thomas Schlegel
Community Champion
July 3, 2017

have a look at status.atlassian.com

0 votes
Nic Brough -Adaptavist-
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 Champions.
June 27, 2017

Suggest an answer

Log in or Sign up to answer