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

Is there any conflict if "Read-Only Attributes For Condition" and "Required Attributes For Condition" plugin applied on same attribute for different condition?

Consider a scenario where "Read-Only Attributes For Condition" and "Required Attributes For Condition" plugin applied on same attribute. 

eg. There are two attributes test_contributor (Contributor type) & test_comment (String). 
 
"Read-Only Attributes For Condition" script which is applied on "test_comment" attribute logic is :

If (logged_in_user is not equal to test_contributor ) {
 return true; // Make test_comment as read only
}

"Required Attributes For Condition"  script which is also applied on "test_comment" attribute logic is :
If (logged_in_user is equal to test_contributor ) {
 return true; // Make test_comment as required
}

After applying both plugins on operational behavior, "Read-Only Attributes For Condition" is working as expected. But "Required Attributes For Condition"  is not working properly.
* mark is showing for test_comment attribute but user is able to save workitem without any value in  test_comment attribute.

Is there any conflict if "Read-Only Attributes For Condition" and "Required Attributes For Condition" plugin applied on same attribute?
  

0 votes


Accepted answer

Permanent link

As far as I have tested, if configured correctly, the two conditions work completely independent of each other and don't even know of each other. You can even configure attributes as required and read only. See https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ with some more background.

Ralph Schoon selected this answer as the correct answer

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
× 9
× 6
× 1

Question asked: Nov 13 '17, 6:09 a.m.

Question was seen: 2,364 times

Last updated: Nov 13 '17, 6:38 a.m.

Related questions
Confirmation Cancel Confirm