how do I can stop dojo scripts being used in some of DEFECT workitem attributes?
2 answers
Hi Pankaj,
Limiting the execution to a particular work item type is possible by reading the type using
workitem.getValue (
WorkItemAttributes.TYPE)
and
by creating a conditional clause as in
if (type == "")
to do something specific to the types...
Similarly, if you are looking to limit the execution to specific work items, like in work item with id 10000 or so on, then you could create your conditional statements based on
WorkItemAttributes.ID
However, I wouldn't recommend this approach as the work item id's are autogenerated and hard-coding and using work item Id's in script might easily become unmaintainable...
hope this helps
Comments
Hi Dinesh,
You can try to disable Process Attachment Scripts in the advanced properties of the CCM server. Then ALL Scripting should be disabled. Then do your changes and enable scripting again.
https://jazz.net/forum/questions/92320/how-can-i-enable-the-process-attachment-script-in-jazzhub/94114 shows how to enable that. You can use the same steps and "False" to disable it.
Attribute customization is on attribute level and ALWAYS RUNS FOR ALL WORK ITEM TYPES THAT HAVE THE ATTRIBUTE. So you can either change (all) the scripts to bypass for specific types, or you disable Scripting.