I had created the script to set the current date on new custom field(SLA Breach) when the ticket is breached. But the issue is that current date is not set to SLA Breach field and it is showing null.
In Scriptlistener, I had implemented the script that run only on SLA Breached event.
The code is provided below:
def issue = event.getIssue()
def bdate = customFieldManager.getCustomFieldObjectByName("SLA Breach")
issue.setCustomFieldValue(bdate, new Timestamp(new Date().time))
Everytime i found that error that is setCustomFieldValue cannot find.
Any idea which i missed from my end.
Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...
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