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!
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.
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.
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.
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.
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!
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