You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
we have a custom field which is the list of our teams. is there a way to set approver of the issue based on the chosen item of the custom field.
P.S
i tried automation rules, but couldn't find SET APPROVER on action list items.
Hi @Parham,
Like Paulo said, one solution is to use an add-on like Power Scripts. With a few lines of code, you can easily and quickly set approver based on custom field values of request.
We've put together a short 4 min video showing how to set this up and execute. We've also included the sample script we used, so you can just copy and paste to test it yourself.
Hope this helps!
Johnson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have used this script in the change workflow at the create stage but the approval email is not triggered. Have tried all possible variations but no luck. It successfully sets the approver but the mail is not triggered. When I set the approver manually it triggers the mail. If you could offer any advice it would be much appreciated.
Thanks
Dermot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dermot,
Mine works when I use a script. It's just important that I put the script not as the last item in the post-script events. Where did you place yours?
S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Susan,
I got it going using the workflow toolbox (you suggested this in another post from me btw thanks!). I tried the script in every possible sequence in the post function to no avail. It's all working as expected now.
Thanks!
Dermot
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.
Hi, Parham.
Unfortunately, this is not possible to achieve without a customization or a specific 3rd party plugin that can proceed with that. But notice that it's possible to have a pre-selected list of your approvals, so if this custom field that you've mentioned is a "User Picker" type, you can navigate through your project configuration and on "Request Types", you can add this field there as hidden and an option will appear for you to set a list of users there.
I'm not sure how your workflow works exactly, but I believe you can customize it according to my statement ahead and maybe have more than 1 approval field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parham,
I do it with a post-function script (using Scriptrunner).
Susan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Susan, can you please help me on my problem .
I want to create a simple post function on JIRA Service Desk that automatically sets the Approvers Field based on the requestor's manager. could you provide me some suggestions, or even sample code? thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi alvin,
One simple way would be to keep the requestor's manager in a user property, then just copy it to a field. I've done that in the past.
Susan
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.
Hello Susan
Could you please kindly share your script out ?
We also encounter this requirement from our users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Parham, I do it with the built in Jira Service Desk Automation. I select the actions and "Do" modify issue, select the field Approvers and then choose the approvers for that scenario. The bad thing is that you have to add every approver for each scenario, it cannot be a group.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello there Cloud Community members! Today, we’re thrilled to announce Jira Service Management, the next generation of Jira Service Desk. Jira Service Management touts advancements in IT service ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.