It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automatically Set Due Date using SLA

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 Leader Feb 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"

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
Community showcase
Posted in Jira Service Desk

Tell us how you've implemented Change Management

Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...

280 views 0 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you