Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Current »

Abstract

This code snippet fetches the comment added during a transition

Logic

Access the text of the comment using transientVars variable.

Snippet 

transientVars.comment

Placeholders

NA

Examples

The output of this snippet is a String which you can use in:

A Groovy expression, for example to:

  • Set a text field with the comment that was just created. Eg: Set a custom text field to the comment that was just added in one of the Set field value post-functions

A Groovy template, for example to:

  • Notify of the most recent comment. Eg: Adding the most recent comment on the issue to its linked issues or as subject of an Email etc
    • in one of the Comment issue post-functions
    • Subject/HTML body/Text body of Email issue post-function

      <% if(transientVars.comment) {%>
      A comment: <%=transientVars.comment %> has been added on the linked issue  
      <% } else {%>
      No comment was added on the linked issue
      <% } %>

References

  • No labels