Hi Team,
Can you please help how to set this using behaviours(script runner). I have already changed the priority value based on other field values and component field values, but not able to do with custom date field value. Could you please someone help on this.
* If issuetype in (Bug, "Change Request") AND Need By Date is a date in the past then set Priority=Critical.
* If issuetype in (Bug, "Change Request") AND Need By Date is today then set Priority=Major.
* If issuetype in (Bug, "Change Request") AND "Escalation?" = No AND Need By Date is in the future then set Priority=Minor.
This is based on select field value,
{noformat}
if (getFieldById(getFieldChanged()).getValue() == "Yes") {
getFieldById("priority").setFormValue("Blocker")
}
{noformat}
Thanks!
Have you seen this example from the Vendor?
https://library.adaptavist.com/entity/update-priority-based-on-a-custom-field
Hi @Andrew Morin ,
Do you have anything on date.
* If issuetype in (Bug, "Change Request") AND Need By Date is a date in the past then set Priority=Critical.
* If issuetype in (Bug, "Change Request") AND Need By Date is today then set Priority=Major.
* If issuetype in (Bug, "Change Request") AND "Escalation?" = No AND Need By Date is in the future then set Priority=Minor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you can get the code you need from this post...
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.