So I'm setting up some automation rules in JSD and one thing that would be particularly useful for our service desk is for date fields to be updated with relative values.
A specific example of something I'm trying to create: I want public comments added to a ticket to update our "customer updated" date field to the current time. I can get as far as updating this field with a new value, but the options only seem to allow for me to update a date field with a predefined date/time. I've tried a number of obvious solutions (such as entering "now" or "now()" in the field), but it doesn't seem to accept anything but an exact date/time value.
Any suggestions? I've tried out some plugins for automation to resolve this but nothing has been specifically geared towards service desk functionality, so I haven't found anything that caters for my requirements (for example, none of them recognise the difference between internal/public comments on a ticket).
Thanks in advance.
HI. I know how it's do on plugin Power Scripts (https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=server&tab=overview)
1. Create a sil script and add two lines (in script you must change PROJECTKEY = your project key ; customfield_10204 = your customfield )
if(isPublicJSDComment(getLastComment(key)["id"]) and project == "PROJECTKEY")
customfield_10204 = currentDate();
2. Add a new listener on event "Issue commented"
and it's worked =)
Hi Atlassian Community! This is Teresa from the Atlassian team. My colleague Paul Buffington @Buff and I are excited to share a brand new ITSM resource we’ve created – "The Complete Guide to At...
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