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.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.