It's all about the answers!

Ask a question

Add hyperlink to the custom attribute value


Roopa Venu (578) | asked Jul 15 '13, 7:43 a.m.

Hi,

We have added a attribute for defect work item and made it read-only. Now we want to display the value for this field and add a hyperlink to this.

How do we do the same? please let us know the steps


Comments
Indradri Basu commented Jul 15 '13, 8:02 a.m.

To get better answer, you may want to provide some more information like what is the version of RTC, is this attribute a list , does the value changes on any condition or is this like a static text/link etc.


Roopa Venu commented Jul 15 '13, 8:07 a.m.

this will be static link, which will be updated once by taking value from the 3rd party tool using oslc concept


Roopa Venu commented Jul 15 '13, 11:12 a.m.

We have added a custom attribute in the defect work item. We want to display a value for this field which comes a third party tool and display the value with the hyperlink which will take us to the third party tool on click of the value in this custom attribute. Please let me know how can the same be achieved.


sam detweiler commented Jul 15 '13, 11:29 a.m.

Ah, ok, much clearer..
the custom attribute must be html type,
then populate it with the link html <a href='whatever'>text to display</a>

One answer



permanent link
sam detweiler (12.5k6195201) | answered Jul 15 '13, 9:05 a.m.
sorry, there are many questions we don't yet understand..

hyperlink = what application will use this?
a browser does not autofollow links.

RTC doesn't provide direct access via link to a single value.  it provides link to a workitem, which contains values that would need to be extracted to be displayed. (if you don't request the mini viewer workitem contents)

how did u want to display the value of the field? the application UI presents the value as a linkable entity on the application generated html page. if the user does not click on the underlying link, then it is just text on the page.
if the user does click on the link, what do you expect to happen. or hover on the link, is there a different expectation?


Your answer


Register or 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.