Dear community,
We have a custom field "Severity" which has 'Emergency', 'Sev.1', 'Sev.2' and 'Sev.3' as options. If the value is "Emergency" We would like to automatically assign the label "Emergency_YY_WXX" to the ticket, where 'YY' and 'XX' must correspond to the year and the week numbers of the date on which the ticket was set as Emergency.
We're use to work with ScriptRunner, and I've look around a similar case but I did found a clear solution to dynamic labels.
Could you help me on this one?
Hi @Fabio Racobaldo _Herzum_ , @Marco Brundel
Thanks for your inputs, unfortunately we do not have automation in our JIRA instance, so I could not use Marco's option.
I'm not familiar with Behaviors, I will take a look and see if I can make a script with that.
Thanks
Hi @OriO ,
Behaviour is a good option. But you can also have a look at Automation for Jira.
When I set
Emergency_{{now.format("yyyy")}}_{{now.weekOfYear}}
in 'comment on Issue' action I get as a result
Emergency_2022_51
Regards, Marco
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 @OriO ,
you can implement that requirements through a Behaviour (something like https://docs.adaptavist.com/sr4js/latest/features/behaviours/behaviours-examples/setting-field-defaults)
Please let us know if you need support on that.
Fabio
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.