Forums

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

Add second comment field during WF transition

Matteo Napoleoni April 21, 2023

Hi,

I would like to know if it is possible to add a second comment field during a transition in the WF.

Jira_0.png

I would need the comment field, because I want whatever users write to end up directly in the comment field, visible in the issue activity.

I tried to add the comment field in the screen I use for the transition, unfortunately the field is not available.

I thought about adding another screen during the transition, but I saw that I can only have one screen.

Is there any workaround?

Thank you.

Best regards,

Matteo

1 answer

1 accepted

2 votes
Answer accepted
Alex Koxaras _Relational_
Community Champion
April 21, 2023

Hi @Matteo Napoleoni 

You can't add a second comment field. Use a post function to add the values of the fields to the last comment added by the user. As a simplified code the post function would do:

comment = comment + field1_value + field2_value

Matteo Napoleoni April 21, 2023

Hi @Alex Koxaras _Relational_ So, if I understand correctly, I just need to create a custom field where users can write the answer and then through the post functions I can add the answer in the comment field, right ?  Thank you.

Alex Koxaras _Relational_
Community Champion
April 21, 2023

Theoretically yes. But why you want to add it in the comments in the first place? You can place these fields, underneath the description, which is a more prominent place for the users to see.

Matteo Napoleoni April 21, 2023

Good question, I was simply asked to implement it like this. Thank you very much you have been very helpful !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events