- 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-15-2023 07:01 AM - edited 09-15-2023 07:01 AM
Hi @maneesh3
As you mentioned client is sending unique ticket Number, so when ticket is created by email at the same time parse the subject and you can use OOTB field correlation ID where use can store the Jira Ticket number
In your email action script you can easily check if any ticket is created w.r.t Jira ticket Number and accordingly you can create or update new tickets
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-19-2023 11:36 PM
Hi Vijay,
Thanks a lot response. Is there any script that you can help me here please.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 01:08 AM
Hi @maneesh3,
You can use below code to create and update based on subject. lets say you are receiving email subject as : JIRA TKT NO Task7434234 (Task7434234 is your Jira task number)
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 02:54 AM
Hi Vijay,
I have used same script but still getting new tickets created for same subject: kindly let me know if i miss anything here:
code:
Thanks a lot for help here!