Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Why Scrum process template not support some JavaScript code?

 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

0 votes


Accepted answer

Permanent link

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.     

sayli Boralkar selected this answer as the correct answer

0 votes

Comments

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

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. 


2 other answers

Permanent link

Ok and Definitely I will check this. now just debugging the JavaScript code.


Thank you again.

0 votes


Permanent link

 Hey Ralph,


Thank you so much It really works On Scrum Template. there is some small ID issue and its done...


Thank u again
sayli boralkar

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 07 '17, 4:37 a.m.

Question was seen: 1,909 times

Last updated: Mar 07 '17, 11:31 p.m.

Confirmation Cancel Confirm