How to display Information Message with issue transition on Kanban board?

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?

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

239 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot