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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.