Trying to clone task not working

Richard Daniels November 27, 2024

 

Any help appreciated.

I am getting this error:

Error creating issue

The duedate must be of the format "yyyy-MM-dd" (duedate). The Start date must be of the format 'yyyy-MM-dd" (customfield 10015) Issue was created successfully, however some unexpected errors occurred -

My code is:

{

  "fields": {

    "duedate": "{{issue.duedate.plusMonths(3).format("dd/MM/yyyy")}}",

    "customfield_10015": "{{issue.fields.customfield_10015.plusMonths(3).format("dd/MM/yyyy")}}"

  },

  "update": {

    "labels": [

      {

        "add": "cloned"

      }

 

  ]

  }

}

 

1 answer

1 accepted

2 votes
Answer accepted
Shiva Kumar Hiremath
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2024

Hello Richard,

Please try changing the format due date  and start  as "yyyy-MM-dd" in the code

 

 

Thanks
shiva

 

 

Richard Daniels November 27, 2024

Thanks I thought I did that already.

Suggest an answer

Log in or Sign up to answer