It's all about the answers!

Ask a question

Do you have script for "Enforcing attributes based on conditions"?


Pravin Patil (104146134) | asked Apr 28 '15, 12:11 p.m.

I want to achieve the below scenario, which I understand by now, is not available in RTC out of the box.

This must have been a common scenario for many, hence wanted to check if you have ready script for this?

Scenario1:

I want to make two attributes of type "Date" and "textbox" to become
required/mandatory depending on the value selected from another        
dropdown attribute. For e.g., I have a dropdown attribute named        
"SelectType". Attributes "RegulationReference" (textbox) and           
"RegulationLetterIssueDate" (date) should become mandatory if the      
values in "SelectType" dropdown is either of "NewPolicy", or           
"PolicyRedesign". They should not become mandatory for any other values
selected in the dropdown.

Scenario2:

If value from the enumeration "ReleaseNotesRequired" is selected as "yes", then the attribute "EnterReleaseNotes" (description kind) should become mandatory.

I have never done scripting hence taking time to understand it.

Please share if you have the script.

One answer



permanent link
Alexandre Stegani (8664) | answered Apr 28 '15, 1:48 p.m.

Hi Pravin,

To accomplish both scenarios, you will need to add the Precondition "Required Attributes for Condition" and then you will have to write a condition script.

I can help you providing some sample scripts we have documented in the links below:

Configuring dynamic required attributes

http://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.2/com.ibm.team.workitem.doc/topics/t_configuring_dynamic_required_attributes.html

Check "Custom Read-only and Required Attributes" section

https://jazz.net/library/article/1003/#attributecustomization


Comments
Ralph Schoon commented Apr 29 '15, 2:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Also see https://jazz.net/library/article/1093 for more examples.

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.