Search code examples
clearcasecleartool

Clearcase find version based on hyperlink "HlinkToText" attribute value


We are using base ClearCase with ClearQuest integration and whenever a checkin is made, a hyperlink with the WorkRequest number in ClearQuest is attached to the checked in version. I could look at the changeset of the WorkRequest in ClearQuest, but would like to be able to find all files in ClearCase so that we can automate our processes.

Is there anyway to find a version of a file based on the attribute value of an attached hyperlink?

ie. describing a file lists the hyperlinks:

Hyperlinks:
    CrmRequest@50304@\java "WorkRequest" ->  "HUBUB00081581"

and then describing the hyperlink shows the attributes:

Attributes:
    HlinkFromText = "WorkRequest"
    HlinkToText = "HUBUB00081581"

So I would like to be able to find all files which have a hyperlink called "CrmRequest" whose attribute "HlinkToText" has a value of "HUBUB00081581"


Solution

  • I decided to create a checkin trigger which would read the cache file holding the associated work request number and then apply an attribute to the relevant version using this value. We can now do a find based on the attribute values rather than delving down to the hyperlink; it's also more visible through a version tree.

    Thanks!