Forums

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

Link tickets from mail

Antonia
Contributor
April 16, 2025

Hello,
In our project, we have set it up so that you send e-mails to Jira and Jira then creates a ticket. However, if I now send a second ticket afterwards, a second ticket is also created. Is there a possibility that some tickets can be linked? So that I can say that this ticket becomes a subtask of the ticket?

2 answers

1 vote
Piotr Witka
Contributor
April 17, 2025

Hi @Antonia Hi @Marc - Devoteam 

Please try this - it works for me. When you send reply to notification comming from existing ticket this existing ticket key is included in subject of email. If you reply back to address where jira mail fetching is done a new ticket is created. Below automation rule will recognize Regexp pattern of issue key in summary (mail subject) and link that issue with already existing issue mentioned in subject. Let me know if this helps: 

3.jpg

Antonia
Contributor
April 17, 2025

Hello, thank you! So I tried to rebuild the rule, but I didn't get any further with the second step, so I've now used a different “If”. But now I can't get any further with the third step, because I wrote “{{summary}} contains regex [A-Z]+-\d+” for the first value, but what happens with the second value? And in the last step, I couldn't write a JQL query at all, only “relates to” and “trigger issue”. At the bottom of the screenshot I added your “If” to show that there is no “Summary” there, that's why I used the other “If” at the beginning.Screenshot 2025-04-17 165436.png

Piotr Witka
Contributor
April 17, 2025

in place of selection “trigger issue” you need to type manually content of smart value: {{summary.match(".... 

Antonia
Contributor
April 22, 2025

Screenshot 2025-04-22 091033.pngUnfortunately, I can't enter anything in the second field myself, if I press Enter there or click somewhere else on my screen, what's in there is deleted immediately.

 

EDIT: I have it now

Antonia
Contributor
April 22, 2025

And what should I write in Step 3 in the "Second value"?

EDIT: I have this one

Antonia
Contributor
April 22, 2025

I just realized that the rule doesn't help me, because I don't get a notification from Jira.
We just create tickets via Outlook and if a second ticket comes in via Outlook, we also send it to Jira, but the ticket is then created as a single ticket and we would like to link some tickets that come in individually.

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2025

HI @Antonia 

No, sending directly to the email address of the JSM project will create a new ticket.

If in the subject the ticket key is stated, just like in an email received when a comment is placed or status changed, the content of the email will be added as a comment.

 

Suggest an answer

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

Atlassian Community Events