Ad Widget

Collapse

webhook event tags replace not add

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jason
    Senior Member
    • Nov 2007
    • 430

    #1

    webhook event tags replace not add

    I'm using the slack webhook in 5.0 and it's working fine. I'm trying to add a ticket_id field to the event tags based on info i extract from ack info. This part is working fine.

    Once I've got the ticket ID I can set the tag and it appears.

    result.tags.__ticket_id = fields.ticket_id;

    However, sometimes ticket numbers change as issues get merged together etc and so it's re-acknowledged with a new ticket number.

    At this point if i try and update the tags using result.tags.__ticket_id = fields.ticket_id; it creates another __ticket_id tag rather than updating the original. How can I change this to replace or update the original __ticket_id tag?
Working...