Forums

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

JSM Assets: linking an object multiple times

Derrick Sutanto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2023

I have an object type in the assets manager with an attribute that refers to another object type. I would like the other object to appear in this attribute multiple times. In other words, I would like a one-to-one relationship to repeat within the attribute. Changing the cardinality allows me only to link more than one different object within the attribute.

1 answer

0 votes
Dirk Ronsmans
Community Champion
July 12, 2023

Hey @Derrick Sutanto ,

In a single attribute you can only have a single link to another attribute. Having multiple links to the from the same attribute to a single attribute is not possible.

Can you maybe elaborate on the use case why you want to do that?

Derrick Sutanto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2023

We are using the asset manager to keep track of all our company's PCs and their components. Some components are too numerous/insignificant on their own to be recorded as individual objects, so we simply list the component type and model. As some PCs can take more than one of the same type of component, I would like to link that model more than once as an attribute of the PC in question.

 

For example, a server can have four graphics cards of an identical type. The specific server is one object, and the four graphics cards are abstracted to one model of card:

GRAPHICS CARDS

Attributes:

Id | Name | Type | Type value
----+--------+----------+-------------
10 | Model | Default | Text
----+--------+----------+-------------
11 | OEM | Default | Select


Objects:

Key | Model | OEM
------+---------------+---------
PC-1 | Quadro A4000 | NVIDIA

___________________________________________________________________

SERVERS

Attributes:

Id | Name | Type | Type value
----+-----------+-------------------------+-------------
12 | Hostname | Default | Text
----+-----------+-------------------------+-------------
13 | GPUs | Object: GRAPHICS CARDS | Reference


Objects:

Key | Hostname | GPUs
------+------------+---------------
PC-2 | Server-01 | Quadro A4000
| | Quadro A4000
| | Quadro A4000
| | Quadro A4000
Darius
Contributor
July 26, 2023

Very interested in finding a viable approach this problem as well

Peter Strömberg January 13, 2025

Likewise here. 

We'd like to demonstrate in "functions", the number of times a given product is needed. Thus we would like to have the possibility to link the same object several times. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events