Forums

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

JIRA Automation fails with New Forms submission

Brian Martinez November 7, 2025

Hello, I'm using the new public forms and running into some issues since it doesn't give you the ability to map the submitters email to a custom field and instead adds it to a comment on the issue it creates when submitted. 

I created JIRA automation to parse a comment that is created from a submitted form in order to extract the email and then use actions to update the custom field to track the email, and lastly send a confirmation email to the person acknowledging we received the request.

My issue is that the automation fails when submitting the form as it says to provide an email recipient. The automation extracts the email from the comment but during a form submission this seems to fail. If I repeat the comment manually after the issue is created the automation works perfectly. 

I've done triggers when a field changes, and also when a work item is commented. I've done delays, refetch data, log actions but have not been able to get this working when submitting the public form. I hope someone has done something similar and can over some advice. Thank you! 

 

The forms I'm using.

Screenshot 2025-11-07 162132.png

 

I'm using {{issue.comments.last.body.substringAfter("Email address: ")}} to extract the email from the comment.  the comments are added to the issue like below

"This work item was created based on someone's response to a Jira form.

Hertz CRM | Form
Email address: john.doe@test.com"

I'm using {{issue.comments.last.body.substringBetween("mailto:", "]")}} to set the variable in the rule as I only want the basic email address (without this it was adding john.doe@test.com | mail to: john.doe@test.com)

Screenshot 2025-11-07 162702.pngScreenshot 2025-11-07 1628033.png

 

Failure Log on form submission

Screenshot 2025-11-07 163051.png

Successful log when triggered directly in JIRA

Screenshot 2025-11-07 163218.png

2 answers

1 accepted

3 votes
Answer accepted
Trudy Claspill
Community Champion
November 7, 2025

Hello @Brian Martinez 

You said you tried Re-fetch and Delay, but did you still have the Condition within the trigger when trying those?

Can you show us the rule structured with the Re-fetch or Delay, with the condition not in the trigger, and the audit log results?

Brian Martinez November 10, 2025

Hi @Trudy Claspill, thanks for your response. Here is an example of me using Delay and re-fetch.

 

Here is the rule

Screenshot 2025-11-10 140440.pngScreenshot 2025-11-10 140514.png 

 

Here is the audit 

Screenshot 2025-10-15 123513.png

 

If I copy the original comment and re-enter it via the UI the rule works perfectly. 

Screenshot 2025-11-10 141110.pngScreenshot 2025-11-10 141006.png

Trudy Claspill
Community Champion
November 10, 2025

What are the details of the Create Variable action?

It seems like the variable is failing to get an actual value based on the later Log action you have.

Screenshot 2025-11-10 at 1.54.46 PM.png

Can you try moving putting a Re-fetch action or Delay action immediately after the trigger and before the IF component?

Screenshot 2025-11-10 at 1.53.00 PM.png

 

Brian Martinez November 10, 2025

The create variable is using 

{{issue.comments.last.body.substringBetween("mailto:", "]")}} as I want just the email from the  {{issue.comments.last.body.substringAfter("Email address: ")}} extraction. 

 

I tried putting the refetch before the IF statement by itself (no delay), delay by itself (no refetch), and Delay then refetch before the IF statement and get failures.

 

Screenshot 2025-11-10 183059.pngScreenshot 2025-11-10 183133.pngScreenshot 2025-11-10 183213.pngScreenshot 2025-11-10 183408.png

Screenshot 2025-11-10 183649.pngScreenshot 2025-11-10 183733.png

 

 

Trudy Claspill
Community Champion
November 10, 2025

Thank you for trying that suggestion @Brian Martinez .

I've done some testing of my own. I suspect that the failure when the form is submitted has to do with the fact that your substringBetween function is unable to find the "mailto:" and "]" delimiters when the comment is created by the form submission.

Can you add a Log actions immediately after the trigger to log the following information to the rule audit log?

  1. {{issue.comments.last.body}}
  2. {{issue.comments.last.body.substringAfter("Email address: ")}}
  3. {{issue.comments.last.body.substringBetween("mailto:", "]")}}

 

I created a rule with a Work Item Commented trigger followed just by Log actions #1 and #2 above. I then created an issue by submitting a public form where I had entered my own email address.

Log action #1 rendered the following:

This work item was created based on someone's response to a Jira form. [https://x.atlassian.net/jira/software/c/projects/TCSC/form/88/builder|https://x.atlassian.net/jira/software/c/projects/TCSC/form/88/builder|smart-link] Email address: tclaspill@x.com

Log action #2 rendered the following:

tclaspill@x.com

Log action #3 rendered nothing.

 

If I manually copy the original comment in the UI and post it again then the output logged is different.

Log action #1 rendered the following:

This work item was created based on someone's response to a Jira form. [https://x.atlassian.net/jira/software/c/projects/TCSC/form/88/builder|https://x.atlassian.net/jira/software/c/projects/TCSC/form/88/builder|smart-link] Email address: [tclaspill@x.com|mailto:tclaspill@x.com]

Log action #2 rendered the following:

[tclaspill@x.com|mailto:tclaspill@x.com]

Log action #3 rendered the following:

tclaspill@x.com

 

Like # people like this
Brian Martinez November 11, 2025

Thank you so much for your help! You helped me uncover the issue. I was almost there with the log actions, but didn't take the extra step. I was testing the rule in the UI by triggering the record as a way to avoid filling out forms non stop just to test. This ended up exposing the issue I was encountering.  

 

What I discovered by implementing your suggestion is that via the form submission the following smart value 

 

{{issue.comments.last.body.substringAfter("Email address: ")}}

displays the email as test@tester.com.

 

the same smart value triggered in the UI provides a value of  

 

"[+test@tester.com+|mailto:test@tester.com]"

My rule was originally using the smart value below to extract the email value for the variable since it was adding the long email "mailto:" syntax which would fail the email portion of the rule.

 

{{issue.comments.last.body.substringBetween("mailto:", "]")}}

Using this value I would convert [+test@tester.com+|mailto:test@tester.com] to test@tester.com so the email would successfully process.

Since I only want this to trigger when a form is submitted I ended up removing all the delays and re-fetch actions and simply changed my variable value to {{issue.comments.last.body.substringAfter("Email address: ")}}.

 

The submitted forms now create the issue, update the email in the custom intake email field, and adds an intake component value for intake dashboard filters. 

 

Variable update- 

 Screenshot 2025-11-11 165246.png

Final Rule

 Screenshot 2025-11-11 171008.png

 

 

0 votes
John Funk
Community Champion
November 8, 2025

Hi Brian,

Try adding a log of the Intake-Requester field after the Re-fetch to see what value is in there. If nothing, maybe try a Delay instead of just a Re-fetch to give it more time - maybe 5 seconds. 

Brian Martinez November 11, 2025

Thanks for your suggestion John. Trudy's response led me to the issue and solution. 

Like John Funk likes this

Suggest an answer

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

Atlassian Community Events