Forums

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

How to assign the project role dynamically

Ekaterina Danilova December 19, 2018

I have two project roles: Assignee Manager and Reporter Manager

I have two custom fields with the Insight Object type. I have the special attribute Jira_User which links the Jira User with the Insight Object. 

I use the following Insight configuration: 

Multiple: false
Object Schema: Human Capital
Filter Scope (IQL): objectType = "Employee"
Filter Issue Scope (IQL): Jira_user = ${Assignee}
Filter Assign Scope (IQL): object having inboundReferences(Jira_user = ${Assignee},"Line Manager")

Right now, I need to check the current assignee and get the JiraUser from the Insight Object attribute and assign it to the Assignee Manager role. The same is for Reporter Manager.

Could you please advise me whether it's achievable or mb there is a better solution?

Thanks.

 

1 answer

0 votes
Yinon Negev
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.
January 8, 2019

Hi Kate.

      If I understand you correctly, you want to get the Jira User from an Attribute on an Employee Object, and assign it a Project Role?

Such interaction cannot be handled by Insight alone, and most probably require some Groovy Scripting to fetch the correct User from Insight, then (if at all possible) to assign that User to a specific Project Role (click for Jira Javadoc).

You can try to use the Insight Groovy Script Postfunction to run such script, or maybe combine this with Scriptrunner...

On a sidenote - your Customfield configuration above seems to be pointing only to user who is his own Line Manager... You may want to copy the Filter Assign Scope as is, in the Filter Issue Scope as well - to limit Manual Selection, and allow for all Employee Objects who are "Line Manegers", referencing an Assignee...

If you require additional information, please open a Support Request with us at https://portal.riada.io

We cannot, however, develop or support Scripting development.

Kind regards,

Yinon

Team Riada - Insight Tech Support

Suggest an answer

Log in or Sign up to answer