Work Item - Data Validation
I am trying to establish what means are available to validate the content of input fields in a work item. There appears to be a 'follow-up action' facility which seems to be the way forward, however I cannot find any documentation to show how a new action can be created. Perhaps this is the wrong direction!
Any help would be appreciated.
Any help would be appreciated.
5 answers
If you want to validate the content of input fields, you probably want a
pre-condition (which aborts the save if the requirements are not
satisfied) rather than a follow-up action. But in either case, take a
look at:
https://jazz.net/wiki/bin/view/Main/TeamProcessDeveloperGuide#Adding_New_Operation_Advisors
Cheers,
Geoff
rogscott wrote:
pre-condition (which aborts the save if the requirements are not
satisfied) rather than a follow-up action. But in either case, take a
look at:
https://jazz.net/wiki/bin/view/Main/TeamProcessDeveloperGuide#Adding_New_Operation_Advisors
Cheers,
Geoff
rogscott wrote:
I am trying to establish what means are available to validate the
content of input fields in a work item. There appears to be a
'follow-up action' facility which seems to be the way forward,
however I cannot find any documentation to show how a new action can
be created. Perhaps this is the wrong direction!
Any help would be appreciated.
A follow-up: My comment to the effect that "only a failed pre-condition
aborts the operation" applies to client-side process, but not to
server-side process. For server-side process, a failure in either a
pre-condition or a follow-up action will abort the transaction
containing the operation.
Cheers,
Geoff
Geoffrey Clemm wrote:
aborts the operation" applies to client-side process, but not to
server-side process. For server-side process, a failure in either a
pre-condition or a follow-up action will abort the transaction
containing the operation.
Cheers,
Geoff
Geoffrey Clemm wrote:
If you want to validate the content of input fields, you probably want a
pre-condition (which aborts the save if the requirements are not
satisfied) rather than a follow-up action. But in either case, take a
look at:
https://jazz.net/wiki/bin/view/Main/TeamProcessDeveloperGuide#Adding_New_Operation_Advisors
Cheers,
Geoff
rogscott wrote:
I am trying to establish what means are available to validate the
content of input fields in a work item. There appears to be a
'follow-up action' facility which seems to be the way forward,
however I cannot find any documentation to show how a new action can
be created. Perhaps this is the wrong direction! Any help would be
appreciated.
Is it possible to set up a javascript to run a validation against an iteration end date e.g.:
if Scheduled Finish date > Iteration End Date then Warning
Its possible to get the Planned for Attribute which returns the Iteration name but how do you get hold of the iteration start and end dates?
if Scheduled Finish date > Iteration End Date then Warning
Its possible to get the Planned for Attribute which returns the Iteration name but how do you get hold of the iteration start and end dates?
Thanks but the following instructions:
Implement a new advisor by implementing com.ibm.team.process.common.advice.runtime.IOperationAdvisor.
Provide an extension to the operation advisor extension point to declare the new advisor
are not substantiated in any way. How does one implement the IOperationAdvisor and how does one provide an extension.
Can you give me, or point me to, step by step instructions on how to achieve this.
Implement a new advisor by implementing com.ibm.team.process.common.advice.runtime.IOperationAdvisor.
Provide an extension to the operation advisor extension point to declare the new advisor
are not substantiated in any way. How does one implement the IOperationAdvisor and how does one provide an extension.
Can you give me, or point me to, step by step instructions on how to achieve this.
For that level of detail, I'll have to defer to the process team ...
Process team: This one's for you (:-).
Cheers,
Geoff
rogscott wrote:
Process team: This one's for you (:-).
Cheers,
Geoff
rogscott wrote:
Thanks but the following instructions:
Implement a new advisor by implementing
com.ibm.team.process.common.advice.runtime.IOperationAdvisor.
Provide an extension to the operation advisor extension point to
declare the new advisor
are not substantiated in any way. How does one implement the
IOperationAdvisor and how does one provide an extension.
Can you give me, or point me to, step by step instructions on how to
achieve this.