Forums

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

Programmatically change the due date of an issue using JIRA REST API

opadonu emmanuel
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!
June 28, 2024

Hello, i'm having an issue updating the due date of an issue using the REST ENDPOINT:


METHOD:
URL: https://api.atlassian.com/ex/jira/{resourceId}/rest/api/2/issue/10009
PAYLOAD: 
{  

    "fields": {
        "summary": "this is an update to this task",
        "description": "don't forget to eat",
        "duedate": "2020-12-01"
    }
}


the request is only successful when duedate isn't sent, but once due date has been added as a field to be updated, it returns 400 with an error response of

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


please note i've also tried using 
?overrideScreenSecurity=true&overrideEditableFlag=true

but this result in a permission issue requesting for admin access, of which i'm the direct owner of the organisation.



Please any assistance would be much appreciated, Thanks.

1 answer

0 votes
Trudy Claspill
Community Champion
June 28, 2024

Hello @opadonu emmanuel 

Welcome to the Atlassian community.

The error message is not indicating that you are experiencing a problem with permissions.

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

This indicates that the Due date field is not included on the screen associated with the Edit operation for the targeted issue type, of if you are using a Team Managed project the field is simply not on the screen for the targeted issue type at all.

If you view the issue directly in the UI, do you see the Due date field on the screen?

Are you trying to update an issue in a Company Managed project or a Team Managed project? You can get that information from the Type column on the View All Projects page under the Project menu.

Suggest an answer

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

Atlassian Community Events