Comparing recent updater/commenter with assignee.

Adam Piotrowicz October 23, 2014

I'm using "Username of last updater or commenter" type field called "Recently updated by" and want to constantly compare it with Assignee. If these two are different I want to set the value of custom "Ticket updated value" filed to "true".

Am I doing it right with Behaviours:

FormField Ticketupdatedvalue = getFieldByName("Ticket updated value")
FormField Recentlyupdatedby = getFieldByName("Recently updated by")
FormField Assignee = getFieldById("assignee")
if (Recentlyupdatedby.getValue() == Assignee.getValue())
    {
        Ticketupdatedvalue.setFormValue("false")
    }
else
    {
        Ticketupdatedvalue.setFormValue("true")
    }

?

1 answer

0 votes
Adam Piotrowicz October 6, 2015

Anything?

Suggest an answer

Log in or Sign up to answer