It's all about the answers!

Ask a question

Customize Work Item screen to add a third party hyper link


Vijay Natarajan (112) | asked May 25 '15, 12:12 a.m.

I need the ability to add a third party URL as a hyper link in a workitem screen on RTC ccm web. The user should be able to click on it and traverse to the link page. Further, I would also like to pass query parameters i.e. construct it as a dynamic hyper link based on workitem attributes. Pls advise.

For example, I wanted to add something like this: <a href=http://mylink.com:8080/MyView.aspx?userid=myId>MyLink</a> so that it shows up as MyLink in Work Item screen. The user should be able to click on it and traverse to this page. Also, I would like to add additonal Query parameters apart from "userid" shown in the example. THe values for the same may come from work item attributes.

Kindly clarify approach

One answer



permanent link
Donald Nong (14.4k314) | answered May 25 '15, 8:57 p.m.
One way you can do it is to do attribute customization - add a custom attribute with its value (the URL) being assigned by a Script-based Calculated Value. For more details, see the below links.
https://jazz.net/library/article/1003
https://jazz.net/wiki/bin/view/Main/AttributeCustomization

Comments
Vijay Natarajan commented May 26 '15, 1:26 a.m.

Before going through the scripting, I tried providing Default Values (in Attrbute Customization) using Single-Line HTML / Multi-Line HTML provider options. The value specified is <a href="http://mylink.com:8080/MyView.aspx?userid=myId">MyLink </a>.I tried to associate both of these Default Value providers to Large HTML and Medium HTML types. But the same value with href tags is displayed before and after Saving. I would want it to show up the "MyLink" text as hyper link and not the "a href tags". I see that there is way to insert External link in Large HTML field on the screen by the way of user input. I need a similar functionality.Tried script based value provider with Large HTML. Provided the URL with href tags in dojo. No hyperlink display. <o:p> </o:p>


Vijay Natarajan commented May 26 '15, 1:29 a.m.

Before going through the scripting, I tried providing Default Values (in Attrbute Customization) using Single-Line HTML / Multi-Line HTML provider options. The value specified was <a href="http://mylink.com:8080/MyView.aspx?userid=myId">MyLink< /a>.I tried to associate both of these Default Value providers to Large HTML and Medium HTML types. But the same value with href tags is displayed before and after Saving. I would want it to show up the "MyLink" text as hyper link and not the "a href tags". I see that there is way to insert External link in Large HTML field on the screen by the way of user input. I need a similar functionality.Tried script based value provider with Large HTML. Provided the URL with href tags in dojo. No hyperlink display. <o:p> </o:p>


Vijay Natarajan commented Jun 17 '15, 4:31 a.m.

Is there a solution to this? Pls help

Your answer


Register or to post your answer.