Ability to use internal functions in "Add a comment" post-function

Issue #509 new
Radek Janata created an issue

As a user I want to use internal functions (Advanced Parsing Mode) in "Add a comment" post-function.

At this time, I have to work-around this by 1) storing the value in Ephemeral string and 2) using this temporary value in "Add a comment" post-function.

I could use comment via "Set a field as a function of other fields" and use "New comment" but this always adds a public comment. And I need to add an internal ServiceDesk comment

Thanks.

Comments (5)

  1. Fidel Castro Armario repo owner

    You can add the following substring at the end of your comment in order to set visibility to JSD internal:

    : {visibility=jsd_internal}
    

    This is an example of configuration: Captura de pantalla 2017-02-13 a las 13.39.08.png

  2. Radek Janata reporter

    Thanks for the advice but I can't add this to "Copy a parsed text to a field". That's why I'd like to add "Advanced Parsing Mode" to be available in "Add a comment" function (to avoid using ephemeral strings).

    See screenshot:

    2017-02-13 14_30_01-Update Workflow Transition Copy a parsed text to a field Function - SYNOT ICT SE.png

  3. Fidel Castro Armario repo owner

    The substring is a string literal, and you should write it in double quotes and concatenate it to the rest of the comment text using + operator:

    "E-mail sent to " + userEmail(%{10706}) + "\n\n" + "[External Comment]\n" + %{10705} + " : {visibility=jsd_internal}"
    
  4. Radek Janata reporter

    OK, thanks for info. I might use it later. At this time, I'm using "Add a comment" function in combination with ephemeral string so that I don't need to rewrite my post-functions.

  5. Log in to comment