HideIfCreation doesn't work if workitem type is modified
Following is the scenario :-
a. I create a workitem of type 'Defect' and save it.
b. Now, I change its Type to our custom type 'CMVCDefect', and synchronize the editor view, which has custom attributes marked as hidden at creation time.
c. The custom attributes marked as "hideIfCreation=true" get visible in the custom tab.
I understand that the workitem is not being created, it is being transformed to a different type, which causes the hideIfCreation flag to be ignored.
Is there an alternative way to achieve hiding attributes (at creation time) after changing workitem-type ?
Thanks,
Atul
Accepted answer
I tested your use case using RTC 4.0.1 and found that both Eclipse and Web UI behave as expected.
Added a simple boolean and presentation to defect type in a SCRUM PA - Hide On Creation selected
1 - create a task
2 - switch to defect type
--> custom attribute is not displayed
3 - save
--> custom attribute is displayed
Did you test with RTC 4.0.1? Can you do the above test?
What is the version you are using?
Thanks.
Eric.
Comments
Hi Eric,
I use 3.0.1, and we recently started using 4.0.1. In 3.0.1, I couldn't find anything like "Hide on Workflow state".
If you could give an example in terms of project-area-xml changes, that would be great. I want to achieve these changes programmatically through xml-updates.
Thanks,
Atul
(details were provided under Sametime)
1 vote
Thanks a lot Eric for your quick response. We were able to find a solution with the help of the flag "hideIfInState".
2 other answers
Any references on its usage ?
Comments
Hide on workflow state is different.
We could consider Hide on creation as a flavor of Hide on workflow state
where creation is a single state (work item is new and unsaved).
Use "Hide on workflow state" to hide / show attributes depending on a certain state of the type's workflow:
Thanks.
Eric.
1 vote