Hi
I need to check for issues with resolution "UNRESOLVED" and status not closed.
I tried this:
if( !issue.getStatusObject().getName().equalsIgnoreCase("Closed") && (issue.getResolution()== null) ){
Do Something
}
Now an issue with resolution "UNRESOLVED and status "InProgess" is not entering the do something block.
Can you please tell me where I went wrong.
Per my understanding if resolution is UNRESOLVED, issue.getResolution returns null. Because I got Null pointer exception when I tried issue.getResolutionObject().getName() on issue for which Resolution is UNRESOLVED. Is this understanding correct?
Thanks
Abe
issue.getResolution() will return Generic Value so you can't use condition like (issue.getResolution()== null)
use it as follows
(issue.getResolution().get("name")==null) i think it should work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.