The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Marek Bujak - YTS
Contributor
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 - YTS 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"}]}

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events