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,

Can we set Due Date value automatically by  Now+SLA on JSD.

3 answers

0 votes



Sure! Pretty easy was is use Automation plugin,


Hope it helps



Gonchik Tsymzhitov

HI Gonchik,


While using jira automation plugin i am getting below error. I am trying to update "Due Date" custom field.

Action details:

Unknown fields set during transition. Field may not be on transition screen. Fields ignored -

Due Date (duedate)

Transitioned issues to


Hi Gonchik,

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.

Hello @Gonchik_Tsymzhitov,

Is it possible for you to explain more how to do it with Automation plugin? We have JSD cloud and I am struggling to find a solution for this. It would be really good if you can enlighten me :)

Thanks in advance!

Kind regards.

0 votes

Have you tried the "jiraDate"?

"duedate": " {{ #issue.SLA's.fromString.toDate}}format=\"jiraDate\"{{/}}"





Gonchik Tsymzhitov

used this on already but din't work out



Error editing issuesSCLORD-1377 (Error parsing date string: format="jiraDate" (duedate))

andreas Community Leader Feb 22, 2018

Hi Rajneesh,

Can you share a screenshot of your 'Edit issue' action configuration in your rule?

Also take a look at our rule troubleshooting guide:

In particular the 'Log action' described there might help you debug this problem!


Hi Andreas,


i did use Audit log just to get value of issue.SLA's but it shows a blank field no value is logging. please let me know what is missing here.logging.png


Could you change the access to field using custom field id?

"duedate": "{{#issue.customfield_9999999.fromString.toDate}}longDate{{/}}"


You can get id using Custom fields tab in Issue on administration panel after click edit. In url, you can see the Custom field id.


Hope it helps



Gonchik Tsymzhitov

hello Gonchik

Thanks for the reply, i have used customfield option earlier , that didn't turn out. i have a doubt about Locked custom field in jira. Can i access locked field and update them?

Do not unlock fields - they're locked for a reason (stopping you from putting in broken config)

Hello Nic,

Thanks for the information, what can be done further to get SLA customfield values.

0 votes



If you have a scriptrunner you can write own post-function:

Actually, you should remember about different way for write data. 

In your use case, I can suggest CustomField.updateValue method. 



Hope it helps.




Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Desk

How has Jira Service Desk increased productivity in your org?

Hi Jira Service Desk community, Atlassian is on a mission to unleash the potential of all teams, and we know that tools are just one piece of that puzzle. With Jira Service Desk, we have productiv...

187 views 0 3
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