You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm creating a ticket but also want to mention a user in the description. I know the email. Do I have to look the user id before being able to mention?
When mentioning the user from the UI it turns up like this
id: "[user id]",
text: "@My Users Name",
text: " ",
In a RESTful API context, mentioning someone in a ticket typically involves sending a request to the server to associate a user with a specific ticket or include them in some kind of notification system. The specific implementation details can vary based on the API and platform you're working with, but generally, you would use HTTP methods (like POST or PATCH) to update or create a ticket with the mentioned user.
Here's a general example using HTTP POST:
"message": "Hey, could you take a look at this ticket?"
In this example:
- `POST /api/tickets/:ticketId/mentions` is the endpoint for mentioning someone in a ticket. You would replace `:ticketId` with the actual identifier of the ticket.
- `Content-Type: application/json` indicates that the request body will be in JSON format.
- The JSON payload includes the `mentionedUserId` field, representing the ID or unique identifier of the user you want to mention.
- The `message` field can contain an optional message to accompany the mention.
Keep in mind that this is a simplified example, and the actual implementation details can vary depending on the API specifications or conventions used by the system you're working with. It's recommended to consult the API documentation of the service you're integrating with for accurate and detailed information on how to mention someone in a ticket using their REST API.