Automatically set the content of a message++ field from Automation or Script Listener

Description

Hi,
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?

Environment

None

Activity

Show:
Deniz Oğuz
March 4, 2019, 6:37 AM

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.

Pujan Ziaie
March 4, 2019, 1:31 PM

Great, thanks!

Pujan Ziaie
July 31, 2019, 12:30 PM

Hi Deniz,

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.

Cheers, pj

Deniz Oğuz
August 1, 2019, 2:28 PM

Hi,

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.

Pujan Ziaie
August 1, 2019, 3:26 PM

Thanks Deniz! :)

Fixed

Assignee

Deniz Oğuz

Reporter

Pujan Ziaie

Labels

None

Source

None

Jira Version

None

Database Type/Version

None

Browser Type/Version

None

Fix versions

Priority

Major
Configure