Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

string (like a summyry) and field-value in one comment

Josef Sigl March 25, 2021

i want to add automatically an comment on an transition in workflow.

This comment should be composed of a text (string) as a summary and the value of an other text field as description. Both in one comment!

How do I do that?


JIRA Version: 8.5.1


thanks for help

2 answers

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
March 25, 2021

Hi @Josef Sigl ,

you can indeed use a Comment Issue post-function. All you need to do is, in the comment body, generate the desired "wiki markup" to get the desired comment body. For example:

I say: (n) *NOT OK*
{panel}
${issue.getAsString("some field")}
{panel}
Josef Sigl March 29, 2021

Hello David,

thanks for your info. Yes it works !

kind regards

Josef

0 votes
John Funk
Community Champion
March 25, 2021

Hi Josef,

Do you have any add-ons? I know you can do that with Automation For Jira - and probably ScriptRunner as well. 

Josef Sigl March 25, 2021

Isn't it possible to do this with the workflow post function "Comment issue (JMWE app)"?


JIRA_PostFunction.png

For examble look at this screen

PostFunction.png

in the comment should view the header (Text) and in the panel the value of another textfield. All in one action

John Funk
Community Champion
March 25, 2021

It probably can - I just don't know the syntax for that. The folks with JMWE should be able to help you though. 

Suggest an answer

Log in or Sign up to answer