Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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.

0 votes



One answer

Permanent link

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

0 votes

Comments

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

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023

Question asked: Apr 28 '15, 12:11 p.m.

Question was seen: 2,732 times

Last updated: Apr 29 '15, 2:26 a.m.

Confirmation Cancel Confirm