Hello, I have defined a tagset attribute in the LnkToFunctionalCI table. The contribution works fine, but when I try to set a tag to a contact no change is detected. However, I can import my tags to contacts by CSV and by modifying the database directly. You will have a little more information by consulting the screenshots linked to the topic.
Screenshot #1 :
Screenshot #2 :
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Still in the plan for iTop 3.1 ? I just published a (very little) extension, with the same idea as Amarac. that is, a way to categorize the kind of relation between a Contact and a FunctionalCI.
The idea behind is that, while two people can be linked to the same CI, one can be a user, and another can be an Administrator.
The contrib is here, and works well (for me :) YMMW) https://github.com/Schirrms/iTop-Contact-2-CI-Tags
Tested on iTop 2.7.6 and iTop 3.0.1
It's still usable for us, as most of our relationship are set-up trough import, but it's a little hard to explain that a manual adjustment needs phpmyadmin ;)
Thanks,
Pascal
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Pascal,
It is still planned to be handled in the 3.1
By the way there is a quite simple workaround, which is to handle the LinkTable as a true, standalone class, in which case, editing a relation uses the normal display and supports all type of fields.
Thanks for your reply. I did that change (with another to have a better "view" of the relationship) and it kinda works :
<classid="lnkContactToFunctionalCI"_delta="must_exist"><properties><!-- As a workaround to be able to edit the tags in a link class, thanks Vincent --><is_link_delta="redefine">0</is_link><!-- Better display of the link --><naming_delta="redefine"><attributes><attributeid="functionalci_name"/><attributeid="contact_name"/></attributes></naming></properties></class>
But it's a little bit complicated to find the relationship and be able to change the value. Still far better than nothing :)
That leads to another (not so related) question. In the naming section, is it possible to add a constant part (in that case, I would like to add '<=>')
Thanks,
Pascal
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When the class in the middle is not a link, then it should have a friendlyname, otherwise it uses the id pairs. When you use a AttibuteLinkedSetIndirect it goes over the link table, if you use an AttributeLinkedSet, then it displays the object in the middle so the link table, independently of that is_link tag.
š
1
š
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I have defined a tagset attribute in the LnkToFunctionalCI table. The contribution works fine, but when I try to set a tag to a contact no change is detected. However, I can import my tags to contacts by CSV and by modifying the database directly. You will have a little more information by consulting the screenshots linked to the topic.
Screenshot #1 :

Screenshot #2 :

Hello Amarac,
It's a known issue (N°2058), TagSet cannot be used within n:n relationship. We planned to fix it in 3.1 hopefully.
Last edit: Vincent @ Combodo 2021-07-05
Hello Vincent thank you
Hi Vincent and @all,
Still in the plan for iTop 3.1 ? I just published a (very little) extension, with the same idea as Amarac. that is, a way to categorize the kind of relation between a Contact and a FunctionalCI.
The idea behind is that, while two people can be linked to the same CI, one can be a user, and another can be an Administrator.
The contrib is here, and works well (for me :) YMMW) https://github.com/Schirrms/iTop-Contact-2-CI-Tags
Tested on iTop 2.7.6 and iTop 3.0.1
It's still usable for us, as most of our relationship are set-up trough import, but it's a little hard to explain that a manual adjustment needs phpmyadmin ;)
Thanks,
Pascal
Hello Pascal,
It is still planned to be handled in the 3.1
By the way there is a quite simple workaround, which is to handle the LinkTable as a true, standalone class, in which case, editing a relation uses the normal display and supports all type of fields.
TagSet is just one of the failing attribute on the edit in line mode of a relation: file, image, html, text, duration are also failing.
Last edit: Vincent @ Combodo 2022-05-18
Hi Vincent,
Thanks for your reply. I did that change (with another to have a better "view" of the relationship) and it kinda works :
But it's a little bit complicated to find the relationship and be able to change the value. Still far better than nothing :)
That leads to another (not so related) question. In the naming section, is it possible to add a constant part (in that case, I would like to add '<=>')
Thanks,
Pascal
Hi again, for the unrelated question :
Thanks to the doc https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Axml_reference I found out that this can be done in the dictionary files.
So, adding the following line in my translation file does the job :
Thanks,
Pascal
What's the main consequence of "is_link" ?
When the class in the middle is not a link, then it should have a friendlyname, otherwise it uses the id pairs. When you use a AttibuteLinkedSetIndirect it goes over the link table, if you use an AttributeLinkedSet, then it displays the object in the middle so the link table, independently of that is_link tag.