How to assign to a project role using a post function?

MathewI December 3, 2013

Hi- I'm currently trying to script a post-function to assign an issue to a member of a role, but I'm not sure of the best way to go about this. Is this something that can be done easily with Script Runner?

3 answers

1 accepted

1 vote
Answer accepted
Adam Marszałek
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.
December 4, 2013

Hey Mathew,

Please have a look at JIRA Misc Workflow Extensions: https://innovalog.atlassian.net/wiki/display/JMWE/Post-functions

It's paid add-on from version 2.5.7. Surely you may do it via scripted post-function using Jamie's answer from thread:
https://answers.atlassian.com/questions/13140/how-to-list-all-members-of-a-certain-project-role

Then get user from role in issues project, and assigning him/her to issue.

Regards,
Adam

2 votes
JamieA
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.
December 5, 2013

There is an "Assign to role member" built-in script in the plugin since a few months ago... did you try to use that?

R Kouwen April 8, 2015

Great feature. Helped me a lot

0 votes
Mizan
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.
December 4, 2013

There can be multiple users in a project role and issue can be assigned to a single user .You can notify a project role on issue events .

Suggest an answer

Log in or Sign up to answer