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

setting up a conditional required field in rtc 4.0


I am new to dojo, so I apologize in advance if this is a simple user error.

I was trying to follow an article by Jorge A. Diaz to create an conditionally required attribute in RTC 4.0.

I have coded my script:



I have defined my script based condition:


I have defined my precondition for my custom work item:



But when I go to edit my workitem, it seems to have no affect on whether or not the intended field is required.

What am I missing?

Thanks.

0 votes



3 answers

Permanent link
Hello Charles,
difficult to provide an accurate answer here as we're missing details about your PA customization and the Javascript you implemented.
I would encourage you to read/follow this article - https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Conditions

Also ensure that Javascript is enabled on the server: got to ccm/admin#action=com.ibm.team.repository.admin.configureAdvanced
and verify that "Enable Process Attachment Scripts" is set to true


Thanks.
Eric.

0 votes


Permanent link
I have sent a note to our server manager to check that setting - Meanwhile I noticed this message in the log which may be a big clue - com.ibm.team.rtc.common.scriptengine.UnknownTypeException: 'cs.condition.aparanduhl.causal.aparrootcause.script' is not a constructor

0 votes

Comments

Hello Charles,
yes - big clue - please verify:
- all deployed custom javascript
- validate all javascript

You should be able to locate the issue.

Thanks.
Eric.


Permanent link

The com.ibm.team.rtc.common.scriptengine.UnknownTypeException: 'cs.condition.aparanduhl.causal.aparrootcause.script' is not a constructor  message pointed to a syntax error in my .js file - actually more that one.  After Eric helped me through those, I have the conditional requiredness of the field working!  Thanks for all the help!

0 votes

Comments

yes - we mostly fixed Javascript  syntax errors.
Glad I could help here.
Thanks

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

Question asked: Feb 02 '13, 4:35 p.m.

Question was seen: 8,725 times

Last updated: Feb 06 '13, 12:47 a.m.

Confirmation Cancel Confirm