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

How can I make a field unique in RTC?

I want to make one field unique in a workitem so that if a second workitem is created with the same value in that field it should not allow to save.

0 votes



2 answers

Permanent link
I am not sure you can do that easily.

One Idea that comes to mind is, you could create an advisor (extension work item save), that runs e.g. a query and checks if there is a work item with the same value in the attribute and prevents saving if so. However, there are performance implications.

What would be the use of this?

0 votes


Permanent link
 What are you trying to achieve and what type of value are you trying to store in this unique field? Where does this value come from?

0 votes

Comments

 This is a alphanumeric field which should not be duplicated. 

I want to make one field unique in a workitem so that if a second workitem is created with the same value in that field it should not allow to save the workitem.
Example, ,I have a field called Title in a workitem of type, say, Story. I want to make sure that the user should not be allowed to create more than one Story with the same Title
 
<o:p> </o:p>

<o:p>   </o:p>

As already mentioned above you could create a work item advisor. As an example see https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ . This would check (e.g. using a query) to look if the value is already used.

However, please be aware that this will be a considerable drain on the performance of the system, as it will have to run a query each time a work item is saved.

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: Jun 13 '14, 6:38 a.m.

Question was seen: 2,730 times

Last updated: Jul 07 '14, 5:24 a.m.

Confirmation Cancel Confirm