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

How to set RTC workitem attribute's behavior in UI ?

Hi RTC admins,

I checked there are some document about how to set attributes based on the condition when user saves a work item(https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Conditions). 

Currently I need to set some customized workitem attributes when deliver changesets(associated with workitem) or via someother operations rather than saving workitem. And there are no such default "Required Attributes For Condition" preconditions for deliver operation, my question is - does RTC provide any API to set RTC workitem attribute's behavior in user interface?

Thanks a lot.

0 votes


Accepted answer

Permanent link
the answer is No.. you would have to write a java server side participant
kelly hu selected this answer as the correct answer

0 votes


3 other answers

Permanent link
So even I write a java server side precondition, we still cannot use API to dynamically enable field's requireness on the UI, it just post error message, right?  (I've done the precondition to post error, just want to confirm, thanks.)

0 votes

Comments

as far as I know, there is no mechanism to prevent changes in the UI itself on the fly. (make a field actually read only occasionally)..

I have only seen reporting errors on changes not allowed by some precondition.

the two advisors, Read Only for Condition and Read Only for type and State prevent saving if the specified fields have been changed in the UI.
they do NOT prevent the UI from allowing changes prior to saving

I have tested this and also looked at the internal code. The preconditions "read only for type and state" and read only for condition" do set the attribute read only preventing an input. The preconditions "Required for ...." show the attributes requiredness by displaying the asterisk. See https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/ for how that is done. The post also explains that and why you can not create custom advisors that do this.


Permanent link
The UI shows required or read only for conditions and the built in advisors. See https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/ for how.

0 votes

Comments

I don't understand what you said.. the advisors both say 'cannot be saved if changed'

which means the UI will allow the change,  but the save is stopped..

this is NOT the same as disabling data entry in a field  (IN THE UI) so that data CANNOT be changed (I do not know how to do this with RTC today. )

IF you mean has some visual indication that the field should not be changed . (like the star next to required fields) I don't find that useful at all.


Permanent link
I agree the answer is no, we cannot dynamic set field requiredness(add the star to required fields) in deliver action instead of saving work item action, thanks for the comments.

0 votes

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
× 10,937

Question asked: Aug 25 '16, 2:42 a.m.

Question was seen: 1,843 times

Last updated: Sep 14 '16, 4:37 a.m.

Confirmation Cancel Confirm