Automatically Set Due Date Using SLA

Rajneesh Tyagi February 18, 2018

Hi All,

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

3 answers

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2018

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

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2018

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

Rajneesh Tyagi February 22, 2018

used this on already but din't work out

 

EDIT ISSUE

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

andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 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

Rajneesh Tyagi February 22, 2018

EditIssue.png

Rajneesh Tyagi February 22, 2018

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

Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2018

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

Rajneesh Tyagi February 23, 2018

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?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2018

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

Rajneesh Tyagi February 25, 2018

Hello Nic,

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

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 18, 2018

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

Rajneesh Tyagi February 20, 2018

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

Rajneesh Tyagi February 21, 2018

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.

Doğucan Baskın January 9, 2019

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events