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

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

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

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

Great feature. Helped me a lot

0 vote
Mizan Community Champion Dec 04, 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted yesterday in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

40 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you