We would like to use Message++ as a helping windows for the users to see available options for a certain community. These options are dynamic and need to be updated frequently by Automation plugin or Script Listeners (ScriptRunner Plugin).
How can I set/update the value of a message++ field from a groovy code? Is this possible?
We needed to make minor changes to our MessageConfigManager class to make it accessible from ScriptRunner. We are trying to fix another unrelated bug and we will release it once it is completed. If you need this fix urgently I can deploy a private version to the marketplace. Please let me know.
Any updates on this issue? Is it possible to update the message content via a groovy script (e.g. in post-function or via ScriptRunner listener)?
My case is:
I would like to check the values of some fields, and if something is off, I would like a CF++ Message field to show the relevant warning. This means that the content of the CF++ Message should be set dynamically when needed.
1.6.7 version will solve compilation problem for your script. You code is correct. Just be sure that you are using correct fieldConfigId. I lost some time by using fieldId instead of fieldConfigID incorrectly yesterday.
Thanks Deniz! :)