Hi. How can I use flag functionality (def flag =[ ... ] Response.ok(...) ) in Jira Software Data Center as a response to the user. Use Case: User triggers an action in an issue, Jira should confirm this action.
I found solutions only for cloud, not for DC.
Is there another solution to this?
Thanks
Martin
In a workflow post-function, you can use the UserMessageUtil
Either using one of the built-in methods (success, error, warning)
import com.onresolve.scriptrunner.runner.util.UserMessageUtil
UserMessageUtil.success("success message")
Or the flag method with a custom flag
import com.onresolve.scriptrunner.runner.util.UserMessageUtil
def flag = [type: 'success', close: 'auto', body: "message body"]
UserMessageUtil.flag(flag)
I think at some point this class was somewhere in the documentation, but I can't find it anymore.
That's great - and so eazy! Thanks a lot!
this works both ways.
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.