Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to check for a list of links if they are visible in the context of a global config

We have an external platform that links items to Jazz artifacts. Our platform is aware of global configurations. Just as in DNG the user can define a global config context. Therefore we have to check for each link in a certain view if it is visible under a given global configuration.
Is there a way (e.g. via an API) to check which links of a list of links are valid in the context of a global config URL?
We are using 6.0.6

0 votes


Accepted answer

Permanent link

Christoph,


If the links are outgoing from your application and going to some other config-enabled application, then your application should know if the outgoing side of the link is visible in or appropriate for a given global configuration. That could mean either that the outgoing links are from versions of artifacts that are selected by this GC, or from non-versioned artifacts that are related to the current GC in some other way.

The fact that an outgoing link exists as defined above does not necessarily mean there is any version of the target artifact visible in the current GC. There is no API that answers that question for a list of target URIs. What you could do is to show the links (possibly with the target URI itself as a label, or a cached copy of the target label if you had one) initially, and then to have a background thread verify each link in turn, using a HEAD request with the current GC context header or (possibly better) a compact rendering GET request with that same header to verify the existence of the target URI in that context. If that succeeds, the link can be updated to use the current title; if it fails, the link can be removed from the display, or (better) updated with some annotation to indicate that the link has no valid target in this configuration.

If your question relates to finding incoming links from some other configuration-enabled tool to your artifacts, the answer is quite different - you need to use some form of link discovery. Typically, this uses either OSLC query, or the Link Discovery Service (LDX).

Nick.

Christoph Bergner selected this answer as the correct answer

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 7,486
× 33

Question asked: Jun 12 '19, 8:09 a.m.

Question was seen: 1,875 times

Last updated: Jun 12 '19, 10:06 a.m.

Confirmation Cancel Confirm