I am working on a post-function script to assign an issue to a default jira user named "cmdefault" if the issue isn't currently assigned to a member of the cm group. From what I've read, I believe I would start with something like this...
assignee not in membersOf("config-mgmt")
and if that condition was "True", then change the assignee to "cmdefault". I've having a bit of a problem because it's not clear to me how the entire post-function script (Scriptrunner) is constructed.
if assignee not in membersOf("config-mgmt")
issue.setAssigneeId("config-mgmt")
Something tells me it can't possibly be this easy, but I'm hoping my example lines above at least catch the drift of what I'm trying to do as a post function. Does anyone have a suggestion that might help me with this post-function script?
Thanks a lot!