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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
used this on already but din't work out
Error editing issuesSCLORD-1377 (Error parsing date string: format="jiraDate" (duedate))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do not unlock fields - they're locked for a reason (stopping you from putting in broken config)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nic,
Thanks for the information, what can be done further to get SLA customfield values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Sure! Pretty easy was is use Automation plugin,
Hope it helps
Cheers,
Gonchik Tsymzhitov
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Gonchik,
While using jira automation plugin i am getting below error. I am trying to update "Due Date" custom field.
Unknown fields set during transition. Field may not be on transition screen. Fields ignored -
Due Date (duedate)
Transitioned issues to
Completed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.