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

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

More
11 Aug 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 Log in or Create an account to join the conversation.

More
11 Aug 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 Log in or Create an account to join the conversation.

More
12 Aug 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 Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.029 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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