We want to attach a default label whenever a Bug-type issue is created. For example, when a user creates a bug, it would have a default "needs-triage" label that would get cleared when triage happens.
How would I do something like this?
Hi Joel ,
You can install the Script runner plugin and write a groovy script postfunction which will be added on the create transition.
This script postfunction will check the issue type and if its bug set the label field to "needs-triage" label.
The easy solution that occurs to me wouldn't be a label, it would be a custom field, specific to the Bug issue type (and you could set it to only specific projects, if not everyone wanted to use it). Have it default to a value like "needs triage" and then when the triage is done, they erase the field and save it, done. A checkbox or radio button would work, too, and you could add values like "needs further explanation before triage" to accomodate changes in your process.
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.
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.