Issue transition with required fields via REST


can you please help me. I'm not able to perform a transition via REST if some fields are required.




"expand": "transitions",
"transitions": [
"id": "21",
"name": "to IN INVESTIGATION",
"to": {
"self": "http://DOMAIN/jira/rest/api/2/status/11505",
"description": "ORDER Investigation and effort estimation started at K&A.",
"iconUrl": "http://DOMAIN/jira/images/icons/statuses/generic.png",
"id": "11505",
"statusCategory": {
"self": "http://DOMAIN/jira/rest/api/2/statuscategory/2",
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
"fields": {}
"id": "81",
"name": "to FINISHED",
"to": {
"self": "http://DOMAIN/jira/rest/api/2/status/11508",
"description": "Order realization finished.",
"iconUrl": "http://DOMAIN/jira/images/icons/statuses/generic.png",
"name": "FINISHED",
"id": "11508",
"statusCategory": {
"self": "http://DOMAIN/jira/rest/api/2/statuscategory/4",
"id": 4,
"key": "indeterminate",
"colorName": "yellow",
"name": "In Progress"
"fields": {
"worklog": {
"required": false,
"schema": {...},
"name": "Log Work",
"operations": [

Now I'm trying to move Key-89 to status "FINISHED".

Jira.transition_issue(issue, tFinished, fields={'timespent' : "6m"})


{"errorMessages":[],"errors":{"timespent":"Field 'timespent' cannot be set. It is not on the appropriate screen, or unknown."}}

Unfortunately the hint on the other question in the Forum throws this error:

{"errorMessages":[],"errors":{"worklog":"Field does not support update 'worklog'"}}

Here is how it looks like in the WebUI:


Do you have anny suggestions? 

1 answer

0 vote

It appears jira python does not support worklog in transition_issue.  I modified the file in the API directly and was able to get it to set the time during the transition.

- def transition_issue(self, issue, transition, fields=None, comment=None, **fieldargs):
+ def transition_issue(self, issue, transition, fields=None, comment=None, worklog=None, **fieldargs):

@@ -1242,6 +1242,8 @@ class JIRA(object):
'id': transitionId}}
if comment:
    data['update'] = {'comment': [{'add': {'body': comment}}]}
+ if worklog:
+     data['update'] = {'worklog': [{'add': {'timeSpent': worklog}}]}

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

288 views 38 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot