Hello everybody I got this problem. I want to create an automatic incident with dynamic summary and description, but I don't know how to set the fields in the JSON body.
I took the json from documentation:
{
"update": {
"description": {
"set": "a new description"
},
"labels": [{
"add": "test-label"
}]
},
"fields": {
"summary": "woohoo! a new summary"
}
}
But I got not nothing in the incident created. Even I got an error in the logs, looks like this:
And my incident settings is this:
Hi @Jorge V
Can you share a bit more details about the rule you're trying to implement? In particular I'm interested in knowing what the trigger is.
Looks like you're getting an error because for Summary and Description you chose to copy from "Current issue" (Indicencia actual), but there is no actual issue to be copied from.
Eric
Sure, that is what I don't understand, how I create an incident from 0?
What I need is send to my endpoint a POST request with a body that includes summary and description, but I only have two options to set, and neither appears as a dynamic summary/descrption option:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jorge V
Some follow up questions:
1. With the incident that you want to create, what are the values you want to set for summary and description? (Where are you getting these values from?)
2. I'm also not following the bit about sending a POST to your endpoint. What endpoint are you talking about? This action will create an issue (and in the process will make the POST to the create issue endpoint).
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.