Hi folks
we have the following set up:
What we want to achieve:
Question:
Thanks for your help on this.
Regards, Benjamin
Hi @Benjamin W_
In Atlassian Assets, object references are typically designed to link different object types. However, there are ways to approach this:
Using Automation or Scripting: Custom scripts or automation rules could read the ManagerDN attribute and then find and link the corresponding user object with the same DN. This approach might require additional scripting or API usage.
Creating a Separate Object Type for Managers: As you suggested, another approach is to create a separate object type for managers. This way, you can easily reference managers in the user objects. Though this might seem redundant, it simplifies the reference process since Assets is designed to handle references between different object types more straightforwardly.
Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.
Regards,
Eugenio
thanks for your feedback and confirmation for our assumption.
We want to follow the second approach with an additional Object Type.
But unfortunately we are not able to set it up correctly.
Maybe you can give me a hint why it is failing?
So far we have:
objectType="AD Manager" AND "distinguishedName" IN (${manager${0}})
I checked out the documentation https://support.atlassian.com/jira-service-management-cloud/docs/add-a-reference/ and for the syntax of AQL here https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/, but unfortunately seems I yet do not fully understand the principle on the references.
A former colleague successfully added a reference from "AD User" to the Jira users with this same syntax. So I am wondering what I am missing.
In fact - field manager from "AD User" maps field distinguishedName from "AD Manager". Actually, simple :-)
User:
Manager:
Do you know how I can make further steps to get my requirement done? Is there any documentation in this AQL in regards to references?
Thank you very much.
Best regards,
Benjamin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Benjamin W_
Sure. Please see below the AQL documentation:
https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/
You can look for Reference functions in the doc.
Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.
Regards,
Eugenio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Eugenio Onofre
thank you for the details.
I was playing around a bit, but unfortunately so far I have not get it working. In the meantime, our project where we need this scenario has been postponed to whenever.. so we also paused working on this. As soon it gets relevant I will share our results here with the Community.
Regards, Benjamin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.