Hi Jyotiprakash,
We don't have a way to do this right now but it is something we've got on our backlog to do. It is much more complex than on JIRA Server.
Jon
@Jon Mort _Adaptavist_ Hi! Is there any way to show messages through script runner in Jira Server using script listener? or catch system UserMessageUtil and change its text?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sofiedan,
For ScriptRunner for Jira Server as you already guessed, you can use the UserMessageUtil, for example for a success message
import com.onresolve.scriptrunner.runner.util.UserMessageUtil
UserMessageUtil.success('Good job! ')
regards,
Thanos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Thanos Batagiannis [Adaptavist]
Thank you! I guess in my case the message didn't appear, because it was inside the cycle.
changeItems.each {it ->
if (it.field == "Attachment") {
UserMessageUtil.info('Text')
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Thanos Batagiannis [Adaptavist]
I am trying to print the errors collected from error collection as below
if (createValidationResult.isValid())
{
log.error("entrou no createValidationResult")
IssueService.IssueResult createResult = issueService.create(currentUser, createValidationResult)
if (!createResult.isValid())
{
log.error(createResult.getErrorCollection())
log.error("Error while creating the issue.")
def errorCollection=createResult.getErrorCollection().getErrors().values();
for (String error: errorCollection){
log.debug("inside error collection" )
UserMessageUtil.error("Error : ")
}
}
}
But it is throwing error message twice. Am i doing something wrong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Has this feature been implemented for Jira Cloud? It's been about 3 years now since it was on the Backlog.
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.