Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / jira_script runner_behaviour.groovy
Last active January 23, 2024 09:30
Jira Script Runner - Behaviour - Issue Templates, Restrict Links Types
// ------------------------------------------
// ---- Set default Description -------------
// ------------------------------------------
def defaultDescriptions = [
Story: """
*As a* USER
*I want* FEATURE
*so that* BENEFIT
@KenDUemura
KenDUemura / AssignIssueToComponentOwnerListener.groovy
Last active April 18, 2024 09:43
Set this in Scriptrunner's Script Listeners, listen to issue update event to automatically re-assign issue to the Component Owner when Component changed.
/**
* On Issue Update Event
* If Component is changed and only one component is assigned
* then re-assigns the issue to the Component Lead
*/
import com.atlassian.crowd.embedded.api.User
import com.atlassian.jira.bc.project.component.ProjectComponent
import com.atlassian.jira.component.ComponentAccessor