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

How to make a mandatory field when I change to another state?

Hi.

I need make the Comments/Discussion field mandatory whenever the ticket goes from "In Progress" to "Assigned" state.

Do you have anny guide  to do it? please. Or anyone can explain it to me?

thanks in advance.



.

0 votes



2 answers

Permanent link
 Hi Sergio,

You can do that by writing a precondition plugin OperationAdvisor.

In the plugin you will have to:

  1.  Get the value of the Disussion/Comment. by:
String commen = sourceworkItem.getComments().toString();

      2. Check if the string is empty.
	

if(commen.isEmpty()){
IReportInfo problem = collector.createInfo(summary,description,type);
problem.setSeverity(IProcessReport.ERROR);
collector.addInfo(problem);
}


      3. If the string is empty than pass an error message as given above, else do nothing.

Hope this helps.


Regards,
Abuzaid      

0 votes


Permanent link
Hello Sergio,
there is jazz.net article describing that: https://jazz.net/library/article/537/ look at the section "Dynamic required attributes"

Let me know if it helps for you.
Regards,
Krzysztof Kazmierczyk

3 votes

Comments

I would also suggest using the Dynamic Required Attribute for Type and State precondition, rather than using a custom solution such as an advisor or a script based condition.

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
× 6,118

Question asked: Mar 25 '13, 4:58 p.m.

Question was seen: 6,951 times

Last updated: Apr 02 '13, 9:01 a.m.

Confirmation Cancel Confirm