Re: How to get transition name from current issue.
[email protected] Mon, 18 Jul 2011 03:59:02 CDT
| Newsgroups | gmane.comp.java.jira.user |
|---|---|
| Message-ID | <32529950.927451310979572418.JavaMail.j2ee_forums.atlassian.com@atlassian12.managed.contegix.com> |
Hi Nic, I am posting the same please same what i want to do. Plug-in means we can add new future to JIRA,we can cutomezition according to our needs. Yes,It is work flow validator. My Requirement is "It should check if a field was filled with a specific value, in case it was so, it doesn't allow to transition the issue and show a message. Configuration form. -> List of Fields (Select Custome filed list)--->drop down -> Value to check --->text box -> Message what will be show if the condition is true. "---->text box For this i have developed one validator factory class .For view of above dropdwon and text boxsi have used velocity templates and also i am doing one validator class.This class is able to allow or don't to user to make create issue and resolve issue I have added screens shot for you refrence In 1st screen :Adding validator 2nd :Please see selected one.(I have developed this and installed) 3rd :This view is comes from velocity templated values going to templets through Validator factory class.And add 4th :Added fiels validator to perticular transition and doing publishing. 5th :see the selectCustome field "Users" it matches with the value while adding validator.User is suresh at the time of adding I have added this to Resolve screen(work flow steps). In the reslove screen if selectCustomefiled list is matches with option values given while adding validator plug-in.It will show the error msg while adding the validator. 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? ThanksYou Babu. -- Post by sureshg - online at: http://forums.atlassian.com/thread.jspa?forumID=46&threadID=55219 _______________________________________________ Jira-user mailing list [email protected] To unsubscribe or change your options visit this page: http://lists.atlassian.com/mailman/listinfo/jira-user