Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I need to check whether the value of JIRA field has been updated or now. The field can be a text field or drop down
if (field value is updated)
do something
else
nothing
how can I achieve this?
Hi All,
Following code block works for me. Thanks all for the suggestions.
def isOriginalEstimateChanged = event?.getChangeLog()?.getRelated("ChildChangeItem").find {it.field == "Custom Data1"}
if (isOriginalEstimateChanged != null)
{
EventDispatchOption.ISSUE_UPDATED, false);
tgtField.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(tgtField), event.getUser().getDisplayName()),changeHolder)
}
Hi Heshan,
Are you using ScriptRunner for Jira server?
It depends on what you want to do when the Jira field is updated. With ScriptRunner, you could set up a Script Listener that listens for updates to issues and then check to see if a specific field has been updated. See docs here: https://scriptrunner.adaptavist.com/latest/jira/listeners.html
You could also use ScriptRunner behaviours. For example: if someone is creating an issue and sets a field to some value, you can have the behaviour react and do something to another field. See docs here: https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html
You have a lot of different options, but it depends on what specifically you want to accomplish.
Regards,
Josh
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.