Forums

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

Clearing "duedate" field using the bulk edit issues not working

Miguel Martinez Perez
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!
April 23, 2025

Hi!

I am trying to bulk clear "duedate" using the bulk edit issues endpoint and according to the documentation for clearing a date an empty string must be passed to "formattedDate" but I am receiving an 400 error:

Received 400 calling https://colortasks.atlassian.net/rest/api/3/bulk/issues/fields. Error message: {"errors":[{"message":"formattedDate must not be empty"}]}

 

Payload:

{
    "editedFieldsInput": {
    "datePickerFields": [
        { "date": { "formattedDate": "" }, "fieldId": "duedate" }
    ]
    },
    "selectedActions": ["duedate"],
    "selectedIssueIdsOrKeys": ["<task_key>"]
}

1 answer

0 votes
Marek Bujak April 23, 2025

@Miguel Martinez Perez have you tried to set null instead of empty string? I do not have an env to test it at the moment, so please verify it with limited number of tickets or at SBX at first:D

Miguel Martinez Perez
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!
April 23, 2025

@Marek Bujak reasonable request :-) Yes, I have tried with null for "formattedDate", assigning null and empty object to "date" and all of them are returning a 400 error (the last two with a different error message)

 

Payload:

{
    "editedFieldsInput": {
        "datePickerFields": [
            { "fieldId": "duedate", "date": { "formattedDate": None } }
        ]
    },
    "selectedActions": ["duedate"],
    "selectedIssueIdsOrKeys": ["<issue_key>"]
}
Error:

Received 400 calling https://colortasks.atlassian.net/rest/api/3/bulk/issues/fields. Error message: {"errors":[{"message":"formattedDate must not be empty"}]}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events