what i want to implement is preventing some one from selecting 'reject ' as resolution.
so when he click 'submit' button,a warning dialog box should pop up prevent he from submiting.
any one knows how to implement in development.
my jira version is 4.4.1
Community moderators have prevented the ability to post new answers.
Hi Fabby,
Have you seen this example of behaviours plugin . I guess what you need is similar to this , you just need to modify the code to suit your requirement.
Mizan,
the field "resolution",how can i use method setHelpText(),
setValid() or setError() ?
it is strange to put warning message (such as "you don't have permission to reject issue")on other field(not resolution field)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>what i want to implement is preventing some one from selecting 'reject ' as resolution.
You want a specific user not to select 'reject' as resolution ,right ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry but the question is still not clear to me .
Do you want the resolution field only on resolve screen ?
Or do you want the 'reject' option to be selectable only to some user and only on resolve screen ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,Mizan
1 Resolution has Fixed,Incomplete,Duplicate,Reject,Reproduce as its value.
2 Resolution is on the Resolve Issue Screen,but not on the Reopen or Close Issue Screen.
3 only software leader have reject permission when Resolve Issue,and only test leader have reject permission when Reopen or Close Issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your script you will have to first check whether the current user has a required permission if not then remove the option "reject" from the resolution field .
REmoving the option can be done by applying a javascript using setHelpText() method provided by behaviours plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,Mizan
i have said the field "Resolution" is not on Reopen or Close Screen.
suppose there is one issue whose status is "Resolved" and Resolution is "Reject",then only test leaders shall have permission to reopen or close this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you need is a workflow validator which will validate the given condition before reopen or close issue .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks Mizan,
using workflow plugin:script runner can implememt it.
this page is the resolution:https://answers.atlassian.com/questions/70196/how-to-set-complex-validators-in-jira-s-workflow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you need is a workflow validator and not a popup!
Ans if you want to prevent reject from appearing in the list, you can use workflow properties.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.