It's all about the answers!

Ask a question

Field in read only state in "initialization" state


Rodrigo Oliveira Barros (133) | asked Aug 21 '17, 3:39 p.m.
Can i set a work item field as read only state in "initialization" state? 

In initialization state i want set a field as read only state? Is possible?

Thanks a lot!

Comments
Donald Nong commented Aug 21 '17, 8:14 p.m.

What exactly is an "initialization" state? What is the first state of your work flow - that is the target state of the "start action"?

Accepted answer


permanent link
Ian Wark (79713553) | answered Aug 22 '17, 2:05 a.m.

I think you should use Required Attributes for Type and State in attribute customization.

See these links:

Work Items attribute customization
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Conditions

Custom Read-only and Required Attributes
https://jazz.net/library/article/1003




Rodrigo Oliveira Barros selected this answer as the correct answer

Comments
Ian Wark commented Aug 22 '17, 2:20 a.m.

I meant to say "Read Only Attributes for Type and State". Sorry about that. Apply this to the Work Item Save operation in Operation Behavior.

Read Only behavior


Ralph Schoon commented Aug 22 '17, 3:45 a.m. | edited Aug 22 '17, 3:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Use the built in operational behavior "Read-Only Attributes For Type and State". Pick the state that is reached after saving the first time (e.g. new) as state and the Read-Only Attributes For Type and State precondition works as requested.

See https://jazz.net/library/article/997 for more info.

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.