It's all about the answers!

Ask a question

how to validate summary attribute of child work item with regular expression?


lakshmi jyothsna (3716) | asked Mar 20 '18, 3:06 a.m.

 Hi Jazz team,


we have requirement of developing a server side plugin for creating child work items. But the Summary attribute of the created child work item should be match with some regular expression ( like <a-z>some text <a-z>) . Please guide us how to achieve this through coding,
thanks in advance.


Comments
Ralph Schoon commented Mar 20 '18, 11:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The question topic and the rest of the question seem to be unrelated. I would suggest to refine it.


Ralph Schoon commented Apr 03 '18, 2:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

It seems to be pointless to test the child work item summary if one is creating said client work item using the API.

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Apr 03 '18, 2:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The API to create work items in the Server API can be found here: https://rsjazz.wordpress.com/2016/10/24/using-the-work-item-server-api-to-create-work-items/

https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ shows one of several advisors/preconditions that could be the basis for a custom advisor to prevent saving a work item if the summary does not conform to a regular expression. Again, it does not seem to make a lot of sense to have a follow up action creating a child work item and then another precondition to prevent the change due to the subject not matching a pattern.

Your answer


Register or 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.