It's all about the answers!

Ask a question

Adding multiple risks in a customize change request work item in RTC


Sajjad Ali Khan (314152) | asked Aug 09 '15, 6:37 a.m.
 Hi All,

I have created customized change request type work item where i need to put risks tab in the risks tab i need the text input control which can can single or multiple inputs from the user as the risk can be single or multiple related to change request.

Kindly help me out in above requirement.

Comments
Donald Nong commented Aug 10 '15, 1:15 a.m.

I don't think it makes sense. If you have multiple text inputs, how can you tell which relates to the linked Risk work item?


Sajjad Ali Khan commented Aug 10 '15, 2:13 a.m.

 Donald Nong

I have a different attribute related to each risk, secondly im not talking about Risk work item i m talking about Change Request work item where im adding a tab called risk

One answer



permanent link
Donald Nong (14.5k614) | answered Aug 12 '15, 2:21 a.m.
If you have a one-to-one relationship between a text input and another attribute, and you want to hide the text input when the other attribute is empty, you can try this approach - set the text input presentation as "Hide if Empty" and add a Calculated Value script to it so that when a value is set for the other attribute, something is added to the text input to make it not empty (and not hidden any more).

Comments
Sajjad Ali Khan commented Aug 12 '15, 3:08 a.m.

 Donald Nong can you please elaborate more ? and do you mean Script Based Calculated Value by Calculated Value Script ? if yes then what i will be writing in that script ?


Donald Nong commented Aug 13 '15, 12:08 a.m.

Yes I meant the Script Based Calculated Value. In the script, you would check the corresponding attribute - if it has been assigned a value, the script returns a string; otherwise the script returns an empty string. See below articles for more details about how to write the script.
https://jazz.net/library/article/1003
https://jazz.net/library/article/1360
https://jazz.net/wiki/bin/view/Main/AttributeCustomization

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.