View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Is there a way to get linked objects using the REST API ? - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Is there a way to get linked objects using the REST API ?

More
11 Aoû 2021 00:40 #1 by nicolas@nasdron.be
For example, we have a ticket (id # 16) that is linked to an Equipment (id # 1).
If we make a GET request to obtain the ticket ( http://myserver/projeqtor/api/Ticket/16 ), we obtain a JSON record containing all the Ticket's fields, but not the linked objects...

By the way, the Projeqtor API is a great tool!

Thanks for your help,
Nicolas.

Please Connexion or Create an account to join the conversation.

More
11 Aoû 2021 01:06 #2 by nicolas@nasdron.be
OK, the answer was easy: we just have to use the class object "Link".

Exemple: to get all the objects linked to the ticket # 16:

http://myserver/projeqtor/api/Link/search/ref2Type='Ticket'/ref2Id=16

Then we should extract the ref1Id's from the result...

Please Connexion or Create an account to join the conversation.

More
12 Aoû 2021 17:28 #3 by babynus
In addition, pay attention that you can also have links with ref1Type='Ticket'/ref1Id=16 , then linked element is on ref2Type/ref2id
Rule is that Ref1 is the "smallest" for Class#Id

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.036 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.