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

How to prevent advancing work item status if checklist (boolean) item isn't true

 We have a custom boolean attribute in a work item (Unit Test Completed).  We'd like to prevent the work item from being resolved unless that checklist item is true (i.e. it should be required when transitioning to the final state).  This seems like it should be simple to do but I can't seem to find the formula to do this easily.  Do we have to extend RTC to do it?

1 vote



One answer

Permanent link
no. .make it a required field..

use the required field team configuration in the process configuration for that project.

see

Dynamic required attributes

here

https://jazz.net/library/article/537

1 vote

Comments

Sam,


Thanks for your answer.
Does that work for boolean fields?  I see mention in the comments of the above article on how to set the Default value for a boolean.  Does the required attribute check for a value other than default?

Booleans are difficult in general.. because false (usually the default) is ALSO a valid value.

but it appears u intend for this field to be SET (true) before moving to the next state..
in which case this should work properly.

you can pick the state and resolution code that this field is required to be set for

Unfortunately, it appears that boolean fields don't even appear in the list of fields that you can make a required attribute.  So we may end up having to implement this field as a drop down with Yes/No values and then run a validator that checks for Yes (via a regex).

well, that is disappointing.. I am sure that I built a required field for a boolean in 3.0.1 (now too long ago)..  I know that we had to change this to a tri state field later cause the actual state was not known til very late in the workflow.

I do see that on 4.0.6 you cannot use a boolean for a required field.

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,019
× 10,935

Question asked: Aug 26 '14, 5:45 p.m.

Question was seen: 4,711 times

Last updated: Aug 29 '14, 3:48 p.m.

Confirmation Cancel Confirm