Hi
I have this code snippet:
def origPriority = underlyingIssue?.priority.getName()
log.debug(String.format("orig priority is %s", origPriority))
When i change the priority in the Jira UI, i expected the logfile to show me:
orig priority is <the-original-priority>
Instead, i'm getting the changed/new priority.
So how can i get the original value of the Priority before the user changed the priority?
I need to know if the user has changed the priority and take appropriate action if necessary.
Thanks
--Andrew
Hi Andrew. Alaeksander is right. That should work.
"underlyingIssue" is the object that the DB currently has before it is updated by your form.
Can you tell me how you have setup your behaviour?
Cheers
Dyelamos
Daniel,
It looks like there's a problem with my test instance of Jira (or the Jira Behaviors plugin running on the test instance of Jira).
I was able to get my logic working properly on another instance.
Thanks
--Andrew
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am trying to read selected priority field value on the screen for my process. can you shar the steps or code here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrew,
I've tried your snippet and always get the original priority (I change the priority in the edit issue dialog).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aleksandr
It looks like there's a problem with my test instance of Jira (or the Jira Behaviors plugin running on the test instance of Jira).
I was able to get my logic working properly on another instance.
Thanks
--Andrew
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.