Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,740
Community Members
 
Community Events
168
Community Groups

i need add due date on issue subtask using jira rest api

Currently i am using 'https://projects-lab.cdk.com/rest/api/latest/issue/' to create subtask but i am unable to create due date for it. I am able to see due date field on jira but i am unable to add it using rest api by passing payload.

1 answer

1 accepted

1 vote
Answer accepted
Niranjan Rising Star Jun 08, 2021

Hi @Yasashree ,

Are you able to set the due date field via JIRA UI ? To set Due date on an issue, you need "schedule Issue" permission on the project. You may need to check for the permission. 

i am able to add due date in UI

@Niranjan i am able to add due date in UI

Niranjan Rising Star Jun 08, 2021

@Yasashree - Try to pass the value like this

"duedate": "2021-06-09"

If it does not work, kindly share the complete restapi POST call

@Niranjan  where do i need to put this in payload 

Niranjan Rising Star Jun 08, 2021

@Yasashree - Pass it like every other field. You can check this article .

@Niranjan  it is working

 

{    "fields": {       

    "project": {            

               "key""TLRELEASE"       

                  },        

     "parent": {            

                "key""TLRELEASE-6735"      

                   },  

                                                                                                                   

     "summary""CHECK_Test",        

     "description""add description",        

     "duedate""2021-06-09",        

      "issuetype": {            

                       "name""Sub-task",           

                        "subtask"true        

     },
     "assignee": {           

           "name""akulay"       

 },       

 "labels": [ "ReleaseManagement""CS"        ]    }}

Like Niranjan likes this
Niranjan Rising Star Jun 09, 2021

@Yasashree - Good to know. Kindly accept the answer so that the post will be marked as closed. Thanks

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events