For a transition I want to automatically create a comment to the issue as a post function and use information from the issue itself within the generated comment.
The following expression represents pseudo-code:
{User_how_causes_the_transition} has approved to grant {Custom_Field_ID_1234} the privilege {Custom_Field_ID_5678}.
{Assignee}: Please issue the privilege now. I see myself infront of the Jira "Add Parameters To Function" dialog with "Comment type" set to "Groovy Expression".
What do I have to enter into the "Value"?
I could not find a list containing what options do I have with Groovy within Jira. Ok, there is an "You can use the following variables in your Groovy script" line but how do I know what properties of the objects are available?