How to compare two date picker fields and two user picker field by Script Runner

Hisamitsu Koga June 15, 2017

I want to control transition in workflow by comparing two date picker field and two user picker fields by Script Runner. e.g. if date_picker_1 field is 1 moth less than date_picker_2 field or user_picker_1 field isn't equal to user_picker_2 field, I want to show a transition. How can I realize this by Script Runner? Please let me know the exact script code.

1 answer

0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 15, 2017
Hisamitsu Koga June 15, 2017

Thank you for your reply.

As for comparing two date picker fields, your code works well. Do you have any sample code / info about comparing two user picker fields?

Suggest an answer

Log in or Sign up to answer