The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Elena Oleksenko
Contributor
November 24, 2017

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?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Assaf Meirom
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2020

Faced the same problem...

Is there a solution for this issue ?

0 votes
M Hoogenboom
Contributor
December 21, 2018

Hi, have you found a working solution, Elena?

TAGS
AUG Leaders

Atlassian Community Events