Why Scrum process template not support some JavaScript code?
![](http://jazz.net/_images/myphoto/0c88f4cc34ff8cff321e570ca8312810.jpg)
Hello Team,
I made script for setting actual start date while selecting state(i.e. New, In Progress etc) from status field in work item. but the code I executed in JavaScript is runs on SAFe, Formal process template and money that matters sample project template.
whatever I want that I executed and get the result in SAFe, formal process template but I want that execution in SCRUM process template but its not working please help me over this issue.
scenario of task
when user change the status field from New-->Start Working then actual start date need to set in one particular Attribute field of WI.(For this I made script and it executed well)
above task implemented in All process template except SCRUM.
Why this happens? and What is the solution? please tell me
thanks in advance
Sayli Boralkar
Accepted answer
![](http://jazz.net/_images/myphoto/0c88f4cc34ff8cff321e570ca8312810.jpg)
The answer is basically, that any customization you do, especially JavaScript is heavily dependent on the process the customization is done for. Your script depends on work item types and workflows, ID's for state, attribute ID's, the availability of attributes and so forth.
Your assumption that a JavaScript attribute customization that works with a process in one project area will work with the process in another one is incorrect.
In Scrum there might not be an actual start date attribute, the state ID's or the action IDs might be different. In addition, JavaScript is notorious for being bad in detecting a state change.
Comments
![](http://jazz.net/_images/myphoto/0c88f4cc34ff8cff321e570ca8312810.jpg)
ok Ralph.
Actually, I am not assuming that JS attribute customization is work with a process in one Project area will work with the process in another one.I just want the working of SCRUM with JavaScript.
but as you mentioned that JS may be notorious for state change. I am trying to remove this detection and if not successful then I think I have to go through Formal and SAFe process template
Thank you,
sayli boralkar
![](http://jazz.net/_images/myphoto/e5e63d5878217b64611c1df9401b7cd3.jpg)
You basically have to check and debug if the scripts can run, have all the data available use the correct ID's and so forth. Just removing some part without knowing what the script does and why it does not work in a different process is not a valid approach.