Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue(Bug) not assign issue to the specified role using script runner post functions.

Vishnu Vardhan Chenna
Contributor
July 7, 2023

Hi Community!

 

I have configured bug workflow as per the requirements and configured script runner post function in one transition for  assign issue to the user in specified role, here the assignee would not change still remains same as current user. is there any script runner post function for this. please help me.

 

WhatsApp Image 2023-07-07 at 6.09.33 PM.jpeg

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 7, 2023

Exactly which SR function are you trying to use here?  (There's a few that ask for the parameters in your screenshot, and I don't want to answer for the wrong one)

Vishnu Vardhan Chenna
Contributor
July 10, 2023

Hi @Nic Brough -Adaptavist- 

 

I'm using this expression in Script context "issue.setAssignee('XXXXXXXX')"

XXXX-is Role and the assignee still remains same and not changed to specified role.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2023

You can't assign issues to roles, you can only assign them to individuals.  You'll need to replace XXXX with a specific user.

Kartik Laghulkar Techefficio
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2023

Hi @Nic Brough -Adaptavist-  There is an option in Workflow Post Functions provided by Script runner there is an option for assign Issue (screen shot below) post selecting the option, when we go the script page we have option to choose project role. when we chose a role that is present in the project the issue is still not getting assigned.

image.pngimage.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events