Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Scriptrunner listener on issue events to control dates

Natalie Al-Delemi May 4, 2023

Hello all,


I'm looking for a scripted listener (scriptrunner plugin) to compare a custom date field (Start date) to system field (due date) and prevent an update of Start date if higher than due date.

Can someone help me with the script?

Thanks in advance,

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Ken McClean
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2023

Hi Natalie:

Okay so as I understand it, you want a listener to check on issue update if the start date comes AFTER the due date?

The listener would only detect this when the issue is actually updated, meaning that the user change has already been committed.  

When the listener detects that the start date has been set after the due date, what would you like it to do?

Is this for Jira server or Cloud?

Natalie Al-Delemi May 8, 2023

Thanks Ken for breaking this down to this level. This solution is run on JIRA data center.

It's correct that I want it to be detected. Is there a way to prevent the update? Maybe through behavior or Automation??

Alternatively, what would you recommend should happen after the update?

AUG Leaders

Atlassian Community Events