Hi all!
I'm trying to figure out during the issue creation screen, if the assignee field is:
In any case, I have a script which needs to run only if an issue during creation has not an assignee (the reporter already placed/has chosen an assignee). So if the issue has on the assignee field the values "automatic" or "unassigned", then the script should run.
Keep in mind that automatic will assign the issues to the component leads or project default, based on the project configuration.
So far, I've played with transientVars which returns the modifiedValues only if the script was placed AFTER the issue create PF.
The only solution I've come up with is to create a behavior script, which will populate a CF with a value, is the assignee is a user. And then on my PF script I would check if that field is null or not. If it's null, then the script should run.
Appreciate any advice on this matter :)
Thanx!
Edit 2: Found the solution:
ActionContext.getRequest().getParameter("assignee") will return -1 if automatic is chosen on assignee. The trick is to place the PF before the create issue post function.
Woohoo!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...that's a gem!
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.