Hi All,
I'm using ScriptRunner plugin to display info message when issue moves to particular status.
I created Custom script post-function with following script:
import com.onresolve.scriptrunner.runner.util.UserMessageUtil
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import groovy.xml.MarkupBuilder
import com.atlassian.jira.config.properties.APKeys
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def issueManager = ComponentAccessor.getIssueManager()
def epNum1 = customFieldManager.getCustomFieldObjectByName("Effort QA")
def productValue = issue.getCustomFieldValue(epNum1)
if (productValue == 1) {
UserMessageUtil.warning("You already have 2 tasks In Progress in current project.")
}
All goes fine if I make transition to status from issue view screen - message displayed. But if I make transition by dragging issue in column on Kanban board - nothing is displayed. Is there a way to display message both: on issue view screen and in board view?
Faced the same problem...
Is there a solution for this issue ?
Hi, have you found a working solution, Elena?
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.