Assigning to specific person
Hello @fcarmario ,
I currently have logic in place to assign the issue at create to the New Manager (field) if the Exec Assistant !=null but I wan't to take it a step further. If no New Manager exists, assign to Current Manager (field).
Here's the actual requirement: Upon Create; the New Manager gets assigned this ticket to complete Manager Steps (if the Executive Assistant (New Manager's) is populated this individuals should be assigned). If no New Manager exists, assign to Current Manager (of the Executive Assitant (Current Manager's) if applicable).
Below is my current logic but would like to add the Current Manager verification to it.
The following text parsed in basic mode will be copied to Assignee: %{Executive Assistant} != null ? %{Executive Assistant} : %{New Manager} This feature will be run as user in field Current user.
Thank you,
Scott
Comments (12)
-
repo owner -
reporter Hi @fcarmario
I've added that logic at create but I can't get an assigned to be set. I've even add the custom fields to the permission scheme but still a no go.
Please help!
Scott
-
repo owner You should have post-function "Creates the issue originally" at first position in execution order.
Please, attach a screenshot of the post-function's tab. I want to see all the post-functions you are executing.
-
reporter -
reporter Hi @fcarmario ,
Just checking in to see if you have gotten anywhere with this one?
Thank you,
Scott
-
repo owner Hi @scottjmcdonald,
Sorry for the delay in my response. I can see in the screenshot that you removed the parentheses from the expression. It's very important that you keep them.
You should use the following expression:
%{aaaaa} != null ? %{aaaaa} : (%{bbbbb} != null ? %{bbbbb} : %{ccccc})
replacing aaaaa with field code for Executive Assistant, bbbbb with field code for New Manager, and ccccc with field code for Current Manager.
-
reporter Hi @fcarmario
I added the parentheses but that didn't resolve the issue, it's still not adding an assigned. I'm adding 2 screenshots for your convenience - the one with the names redacted is the ticket I created to show those fields I'm using.
Thanks,
Scott
-
repo owner Hi @scottjmcdonald,
Are fields Executive Assistant, New Manager and Current Manager normal JIRA user pickers, or any other kind of field?
Please, confirm that users in field Executive Assistant, New Manager and Current Manager have permissions to get issue assigned.
-
reporter Hello @fcarmario ,
All 3 fields are user picker fields as well as the user I am selecting in those fields does indeed have the assignable user permission.
Scott
-
repo owner Hi @scottjmcdonald,
You should use ADVANCED parsing mode.
-
reporter Hello @fcarmario ,
UGH! That did it! The tickets are being assigned accordingly.
Thank you! Scott
-
reporter - changed status to resolved
- Log in to comment
Hi @scottjmcdonald,
Sorry, but I'm not sure I have understood your requirements. Anyway, I propose you the following expression:
replacing aaaaa with field code for Executive Assistant, bbbbb with field code for New Manager, and ccccc with field code for Current Manager.