In JIRA Data Center 9.1.0 is there a way in Automation or Workflow that when a ticket gets moved to a particular workflow state, that we can set a custom date field, 'activity start date' to the current system date?
Hi Steve:
You have two options to accomplish this, please take a look below -
Option 1 - Customize your WF by adding a post function call to update the custom date field based on your criteria. You may need additional paid add-ons for this type of WF customization which one can implement with little or no coding required
https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=cloud&tab=overview
Option 2 - Create automation rule via Automation for Jira (this comes with your JSM subscription out of the box). Where the rule can be triggered off by "Issue Transitioned" event + create condition (your criteria) and then conduct an Edit Issue action. Here are the links for automation rules setup for your reference -
https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/ (This gives you the ability to reference issue's data for further customizations)
Hope this helps.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Thank you Joseph! so I have the rule built using your option 2. I have the transition step in place and want to set the current date to the "Activity Start Date' which I have up now, but it wants me to use the date picker? How can I simply set it to "current date?
Thank you!
-Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using smart value, you can use the following to reference current date -
Referencing the current date/time
You can reference the current date and time using {{now}}.
Here is additional reference on using Smart Value in your automation rule setup -
https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/
Best, Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...And it works perfectly!!!!
thank you so much for helping solve this and also for the wealth of information you provided for me!!
Best,
Steve Josue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.