Forums

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

Automatically Set Due Date using SLA

Rajneesh Tyagi February 22, 2018

Hi all,

 

While updating "Due Date" with the value of SLA's in jira Automation i am getting below error. can you please help me to solve this.

here is the json string.

 

{
"update": {
"labels": [
{
"add": "triaged"
},
{
"remove": "blocker"
}
],
"comment": [
{
"add": {
"body": "Thanks for raising {{issue.key}}."
}
}
]
},
"fields": {
"duedate": "{{#issue.SLA's.fromString.toDate}}longDate{{/}}"
}

 

i im trying to achieve due date out of SLA. but getting below error

Error editing issuesSCLORD-1353 (Error parsing date string: . (duedate))

 

pleaes help me to resolve this.

1 answer

0 votes
Laurens Coppens
Community Champion
February 22, 2018

Hi,

maybe this thread will help you further?

https://community.atlassian.com/t5/Jira-questions/Automatic-due-date-by-issue-type-when-creating-ticket/qaq-p/394886

I think you need to find a way to read de sla and add it up to the creation time of the ticket.

so something like "duedate": "createddate" + "Time to resolution"

Rajneesh Tyagi February 22, 2018

Thanks Laurens but i am looking at how to read sla but no luck so far.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events