I want to know if its possible to use the Groovy Script Runner to check if the current user is the current project Lead in a workflow condition to Close an issue.
I'm trying to do using the "Simple Scripted condition" as a Workflow condition.
currentUser == issue.getProjectObject().getLeadUser()
But without results =\
So, it's possible? Any Tips?
Thanks in Advance for the help.
Actually we're using the Jira 6.1.5.
I found this weird too.
If they're diferent types of user, my code isn't supposed to work right?
And, as you asked, here are the assert with the Class name.
assert currentUser.getClass().name == issue.getProjectObject().getLeadUser().getClass().name | | | | | | | | | 512300:10001| | | IST-7 Project: IST 512300:10001 | com.atlassian.jira.crowd.embedded.ofbiz.OfBizUser | | false class com.atlassian.jira.crowd.embedded.ofbiz.OfBizUser | com.atlassian.jira.user.BridgedDirectoryUser class com.atlassian.jira.user.BridgedDirectoryUser
Thanks a lot for your help Jamie Echlin.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG