How to set values to Asignee (by role) field with a post function

Hi, is it possible to set values to assignees by roles field using a post function (or using a custom scripted expression)? When selecting "update custom issue field" post function and selecting the field in question, it's possible to set values to the "whole field", whereas I would need to set one value for each defined role (see screenshot).

Please advise about a possible solution!

Thanks,

Vedran

image2016-9-14 11:46:38.png

3 answers

1 accepted

Hi Vedran,

The add-on has a post-function (see the first screenshot) which will assign the issue to the user specified for that role from before (probably during planning). This is the most efficient way you can use this custom field to save your time and effort. You can decide and assign users to different roles during planning/creating tasks and using this function, the users from the role chosen in the function for a particular transition, will be automatically assigned to that task.

As far as setting up the value for each role, we can possibly look into having a better way to do it in the future. For now, as a workaround, you can set value in the following way (see the second screenshot) :

role id ### user key (for example : 10001###abhinav.ojha).

This will set the user with the given user key, to the role with given role id.

The downside of this is that, to add user for another role, you will have to add a separate post of function for the other role and so on.

Please let us know if you have any further queries.

Thanks,

Abhinav.image2016-9-14 16:44:9.png

 

image2016-9-14 16:45:50.png

Hi Abhinav,

Thank you for the quick response, I will try the workaround. May I suggest adding a post function which would enable setting the assignee for each role to a defined value as a future change request? Specifically, for my case I want to set a "default" assignee for each role on issue creation.

Thanks,

Vedran

Hi Vedran,

if you are looking for setting up a default assignee on issue creation, then you won't have to wait for long. We are working on exactly such feature, where you can set up default users for each roles, which will appear during the issue creation. We will be releasing this feature very soon. We will update you here, as soon as we release it.

Thanks,

Abhinav.

Hi Vedran,

We would like you to know that we have released a new version of plugin:  https://marketplace.atlassian.com/1213605

 

From this version on, you will be able to assign default users for roles, who will appear during Creating an Issue.

This will be on Project level. So, when you go on to "Time Tracking" page in Project Administration (This page is the one where you set a Role Based Scheme for the Project), you will find a new column in the schemes table.

You can add a user there for each roles and those users will appear as default ones on the Create Issue Screen.

Let us know if this works for you or if you have any further queries.

 

Thanks,

Abhinav.

Thank you very much, you've been most helpful smile

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

158 views 0 4
Read article

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