The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to show Validation message in Email to Reporter in JIRA data-center?

Digvijay Singh Gehlot
Contributor
May 31, 2024

Hi Team,

I have a validation on a status change, where Reporter has to fill the Required fields before moving the issue to another status.

The Validation message shows the field names which are not filled before moving the issue to another status. 

Simultaneously, I also want to send a custom email to the Reporter, showing the same Validation message in the email content.

Please guide me further how I can achieve the above requirement - either by automation or scriptrunner. It will be a great help.

Thank you

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Digvijay Singh Gehlot
Contributor
June 1, 2024

Hi All,

Can anybody help me out with my mentioned use-case here?

I am trying a way through Post Function i.e. Send Custom Email via Scriptrunner. 

I am struggling to write a condition in configuration section and how to use that condition in Email Template section.

I have put a Validation when the issue transitions from one status to another, the Validation message shows the Required Field Names which are not filled yet.

At the same time, I want to send an email to Reporter and the email content should display the same Validation message. 

It will be a great help if you can guide me on how to set the Required Qus conditions and how to write a script in Email Template where I can add a statement saying "Please fill the value of this Custom Field - XXXXX before moving the issue to the next status" based on the condition.

I am looking forward to hearing from you soon.

Thanks

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events