Email sent if create issue is aborted due to required fields not being modified at Create transition

Hi

I'm currently working on a new JIRA project which has a requirement that an email is sent of a specific user if someone attempts to create an issue via the create issue screen.

But they don't complete and create issue due to a vaildator "update parameter of the 'field is required Validator' validator" at the create issue transition requiring a value in a specific field.

Thanks

Gary

2 answers

Hi, just to make it clear. Do you want to send the email even if they do not create the issue due to leaving required fields empty?

At least this is what I understand.

I believe this is not possible because JIRA does not complete the Create transition as the validator blocks it. This means the post functions are not executed and the Create Issue event is not fired.

One idea could be to use the Scriptrunner plugin and validate required fields in a post function. 

It has builtin scripts to send simple emails to an address. 

Therefore you could add a postfunction to send email first, then a second one to validate the fields and throw exceptions if required fields are empty.

Tibor

Tibor

Yes that is correct.

Thanks for the suggestion.

Gary

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

84 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you