This issue is only related to Data Center REST APIs V3 and fixed in V4.
|
I'm using the below POST request to log time https://my-jira-url/rest/tempo-timesheets/3/worklogs/ |
|---|
|
{
{ "name": "johnDoe" } ,
{ "projectId": 10517, "key": "TICKET-7839", "remainingEstimateSeconds": 0 } ,
{ "key": "Activity", "value": "Coding*" } ]
|
|
Time logging is successful without any "Activity" value being selected even though it is mandatory. |
|---|
|
{
{ "_Activity_": "Missing value for the required work attribute 'Activity'" } ,
|
|
Work around is to replace with following code where "key":"Activity" is replaced with "key":"_Activity_". |
|---|
|
"worklogAttributes": [ { "key": "_Activity_", "value": "Coding*" } ] |