Hi!
Is it possible to set control condition for fields and assinging?
For example:
I have specific fields and if I fill those with spesific values the system will control those fields and will assign it to person who deal with those issues.
Example:
Components: test
Environment: jira
Jira will automatically assign this issue to X person
If there are
component: live, jira will know that this issue need to assign to another person Y.
Is it possible to set such conditions to control fields?
Thanks in advance.
This is possible through many ways , i would suggest using Script runner plugin . You will need to write a groovy script and add it as a post function on create transition , the script will check the customfield values and based on that assign issues to a user specified in the script .
Ok, thanks. I have installed this plugin (groovyrunner) 2.0 4. So where I can write a script and how I can add it? If I add this condition under workflow->transitions->postfunctions it will be depend when status will change, but where and how I can control fields value before assigning them?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to write a script and save it as a groovy file(.groovy) in your filesystem(server machine)
you can add this script to control your fields on each workflow step as a postfunction.
After you select the add postfunction >>add script post function >>To add the script as a postfunction you will have to provide a complete path to your script in path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome :) you can vote up my answer,comments
below is pseudo code for the scripthope it helps :)
UserManager userManager = UserManager.getInstance(); MutableIssue mutableissue = (MutableIssue) issue; def components=issue.getComponentObjects() //this returns a collection of selected components def environment=issue.getEnvironment()//this returns a string if(component=="x"&&environment=="y") { User issueAssignee = userManager.getUser("user_name"); } issue.setAssignee(issueAssignee) issue.store()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May be I stating the obvious, but if your requirement is to just handle the component based assignment of issues, this is something natively supported in Jira. See http://confluence.atlassian.com/display/JIRA/Defining+a+Component#DefiningaComponent-SelectingaDefaultAssignee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.