Hiding Workflow state based on dropdown value
Below task is related to RTC/CCM
I have created two workflow states in one workitem. Workflow 1 contains 4 states and Workflow 2 contains 5 states.Based on a custom attribute which is of type enumeration contains 2 values issue and defect. If I select issue then I need to hide workflow 2 and if I select defect ,then I need to hide workflow 1. Is there a provision to perform the above mentioned task?
2 answers
Ameya,
Your question is slightly confusing? normally based on what you are saying is that you have two separate work items.
1. Defect Work Item > With a defect Workflow
2. Issue Work Item > With an Issue Workflow
This helps with many aspects in RTC > such as reporting, management, attribute selection etc.
You do specify that you have workflow 1 and workflow 2? I don't think you want to use an Enumeration for this but the Work Item Type.
Comments
Hi,
First of all you cannot assign two work flows to one work item.
But, you can have it in another way.
1) Create two customized attributes,
for example;
Workflow(Attribute) of enum type with values like WF_1 and WF_2.
Another called Value(Attribute) of enum type with values like 1 and 2.
After creating, you have to create dependencies between both attributes and map the values like, when you select 1 it should automatically show WF_1 and if you select 2 automatically it should show WF_2(Mapping should be proper).
Then add those two attributes to the work item.
You can achieve dependencies by (Attribute customization->value sets-> right click->add->name->dependent enumerations), then you can select the source and dependent attributes and map the values.