Forums

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

Automation issue: Due Date not cloned

Barkha Singh October 10, 2022

I am creating automation rule for jira and i want my due date in task to be copied in newly created sub task. 
I am using below smart values but it doesn't seem to work for me


{
"fields" : {
"duedate" : "{{issue.dueDate.format("MMM dd,yyyy")}}"
}
}

1 answer

1 accepted

3 votes
Answer accepted
Alex Koxaras _Relational_
Community Champion
October 10, 2022

Hi @Barkha Singh and welcome to the community,

You have to have Edit and Schedule issue permissions to perform this action. Can you confirm that you have these permissions? In addition it seems to me that the format inside the parenthesis isn't correct. :/

Alex Koxaras _Relational_
Community Champion
October 10, 2022

And may I ask... you are copying which Due Date to which field? It seems that you are trying to copy the same field on itself. No?

Like Barkha Singh likes this
Barkha Singh October 10, 2022

date format.PNG

 jira has this format for date and i want my due date to be cloned in same formaDueDate to be cloned in subtask from Parent.PNG

 

My automation rule is to clone the due date in subtasks from parent task

Alex Koxaras _Relational_
Community Champion
October 10, 2022

Using the format on the due date will not make any difference to the field. You have already set the due date on your instance. Java format syntax can be found here (https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html). But why you dont copy the due date like this:

copy due date.png

Barkha Singh October 10, 2022

Thanks. It is working for me now.

Suggest an answer

Log in or Sign up to answer