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

Hi!

 

Sure! Pretty easy was is use Automation plugin,

https://marketplace.atlassian.com/plugins/com.atlassian.plugin.automation.jira-automation-plugin/server/overview

 

Hope it helps

 

Cheers,

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:
TRANSITION ISSUE

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

Due Date (duedate)

Transitioned issues to

Completed

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\"{{/}}"

 Reference

https://docs.codebarrel.io/automation/smart-fields/working-with-dates.html

 

 

Cheers,

Gonchik Tsymzhitov

used this on already but din't work out

 

EDIT ISSUE

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: https://docs.codebarrel.io/automation/overview/debugging-a-rule.html

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

Cheers,
Andreas

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

Hi, 

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

 

Cheers,

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

Hi! 

 

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.

 

Cheers,

Gonchik

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 & ...

336 views 0 7
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