Re: How to store user entered values in JIRA DB.

[email protected] Wed, 13 Jul 2011 07:26:23 CDT
Newsgroups gmane.comp.java.jira.user
Message-ID <15083199.837811310560013472.JavaMail.j2ee_forums.atlassian.com@atlassian12.managed.contegix.com>
Hi Nic,

   After adding the validator to perticular transition(Resloveissue).It will call the view Method inside factory class.

So I have used List to store those valuse(user chooses when they are adding the validator).I have List as public variable so I am able to use in validator class.

In validator class I am able to get the selectCustomeFiled value through Keytype(Users it is select list type).So ill get selected optionvalue in particular seclListtype.


So i am accessing List in validator class if the list is contains selectCustome filed value(In resovleissue) then i am not allow  transition 

Here I am Stucking.

1)I want add this validator to Reopen issue(Transition).ok
If i added again it will call view method in factory class.It will store the values in List.

2)The list is have already with previous values(while adding validator to resovle screen)

3)So List is having both  resolveissue validator information and reopenissue information.

4)Example:*Users* selectCustome field type  i have applied this filed to both the screens for it having two option values 
1)Nic Brough 2)suresh


For resovle screen i have selected selectFiled as Users.And i added *suresh*.In resovle screen if the client select this suresh is option value then don't allow the transition.(This value is there in List) and showing error mssg.If the client selected Nic brough allow the transition.

*This my main problem.*----For resovle screen i have selected if option value is Nic Brough then i don't allow the transition.If he selected user as suresh then it will allow.

It  is not allowing why because List is already with value as suresh.The same List iam useing validator..

I want use differnt Lists for differnt transition?
or I want use transition while storing the values for differnet transition?

Anthor problem is if restart the application the List going to empty.The validator is not working

ThankYou NIc,
Please Help Me.
suresh.
--
Post by sureshg - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=55230
_______________________________________________
Jira-user mailing list
[email protected]
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-user