- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 05:58 AM
Hi Team,
I have an requirement to create and update ticket with subject line instead of watermark. Client will send emails from JIRA system. They will have unique subject for each ticket sending to SNOW.
for example:
Subject: JIRA TKT NO 74
So I need now to create ticket for the first email and next emails with same subject should be updated. Client did not have feasibility to send thread of emails , and everytime they send as new emails.
Please suggest code to do in inbound email actions
Help much appreciated. Thank you!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 10:21 AM - edited 09-26-2023 10:22 AM
Hi @maneesh3,
If your subject is [JIRA] (C2SD-74) TEST and you wants C2SD-74. then you can use the below regex to get the result
var jiraTicketNo = subjectStr.match(/\(([^)]+)\)/)[1].toString();
and comment out var regExSmit = /Task\d{6}/; line
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 03:01 AM
Hi @maneesh3,
Can you check correlation_id field is available on case table or not? if not then use the field where you are storing Jira Ticket.
Thanks,
Vijay Balotia
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 03:35 AM - edited 09-20-2023 03:43 AM
Hi Vijay,
I have corelation id field but getting different values for 2 new create cases raised for same subject:
Please help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 10:42 PM
Hi Vijay,
Can you please help here.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 11:27 PM
Hi @maneesh3,
Can you please do this in line number 3 and print this in logs and see what value you are getting.
var jiraTicketNo = subjectStr.match(regExSmit).toString();
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 01:53 AM
Hi Vijay,
Modified the line and tested the scenario, now I am getting Correlation ID same but still it is creating duplicate tickets for same subject
correlation ID = Task110017
received emails like below