I have a due date field (calendar picker). I want it to auto-populate a value based on the value in another custom field 'severity'.
Example :
1) If the 'severity' is 'Major' - auto-populate due date with created date + 2 weeks
2) If the severity is 'Minor' - auto-populate due date with created date + 6 weeks
I am fairly new to this. Can anyone please share if you have implemented anything similar ?
P.S - A big shoutout to the amazing community here. You guys are super helpful :)
Thanks!
Hello,
You would need an app for it like Power Scripts, ScriptRunner, Automation for Jira, JWME, MyGroovy and so on.
If you want to use the Power Scripts app, then you could create a SIL listener for the create and update events with a code like this:
if (#{Severity} == "Major" {
duedate = currentDate() + "2w";
}
if (#{Severity} == "MInor" {
duedate = currentDate() + "6w";
}
@Alexey Matveev Hi Alexey, would you be able to share the code if I were to use ScriptRunner? Thank you!
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.