workflow based on requirement type
Question ID: 107650
0
0

i am trying toast fields to read only if requirement type is functional but alm is making all fields now read only for the requirements does anyone have the exact workflow to make a field for a requirement read only based on a particular requirement type (if-else statement).

Thanks

Marked as spam
Posted by (Questions: 19, Answers: 17)
Asked on May 8, 2017 3:29 am
77 views
Answers (3)
0
Private answer

so just to be sure you are saying even though rq type id is a number and shows numeric values i can do an ''if'' statement on a value that is text (i.e. ''functional'') and not numeric ?

Marked as spam
Posted by (Questions: 19, Answers: 17)
Answered on May 12, 2017 8:48 pm
0
Yes, this worked for me. I put under Req_FieldChange sub a case statement to set what some fields values would be based on other values. In that I added a case for rq_type_id and used the text ''functional'' to influence SetFieldApp properties. So basically if my req was of type functional, then some of my fields displayed as required while others became read only.
( at May 12, 2017 8:59 pm)
0
Private answer

for me rq_type_id shows as a number not text

Marked as spam
Posted by (Questions: 19, Answers: 17)
Answered on May 11, 2017 1:54 am
0
Yes in the Db the rq_type_Id is a number. In my testing though I could not get the code to trigger off a numeric value. When I added in the actual text name, the code would work. Not quite sure why that was the case to be honest, but once I had success I just went with it.
( at May 12, 2017 2:14 pm)
0
Private answer

Hello,

Assuming you just mean for an already existing requirement of type functional, you don't want any users able to change a field or fields.

Can just add below code to Sub Req_MoveTo and specify your field or fields you want to become read only. This would make it so that as any user opened that already existing requirement, the fields you specify would be read only and they could not then write a change.

Below I just used RQ_USER_01 UDF in my example, but you could put in any system or user defined field or fields as needed.

If Req_Fields.Field(''RQ_TYPE_ID'').Value = ''Functional'' then
Req_Fields.Field(''RQ_USER_01'').IsReadOnly = True

Marked as spam
Posted by (Questions: 1, Answers: 116)
Answered on May 8, 2017 6:16 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top