I'm doing an integration from LiveChat to Jira and wish to send POST requests to via Jira API to create Insights under specific Idea task type. However, I am unsure how to receive the custom field ID of the Insight.
For example, posting comments inside the mentioned Idea is quite simple as you can simply send a POST request via /rest/api/latest/issue/issueID/comment and a new comment is created, but I am unsure of how to achieve this with the custom Insight field.
Any help is appreciated!
Hi @Mindaugas Stasevicius, my name is Habib. Below I might have a solution for you:
```
{
"fields": {
"project": {
"key": "YOUR_PROJECT_KEY"
},
"summary": "Issue summary goes here",
"description": "Issue description goes here",
"issuetype": {
"name": "Idea"
},
"customfield_CUSTOMFIELD_ID": [
{
"value": "Insight value goes here"
}
]
}
}
```In this example, replace "YOUR_PROJECT_KEY" with the key of your Jira project, and replace "CUSTOMFIELD_ID" with the custom field ID you obtained in step 5 above. You can also add additional fields as needed, such as priority or due date.
```
import requests
import jsonurl = "https://your-jira-instance.atlassian.net/rest/api/latest/issue"
headers = {
"Content-Type": "
Please let me know if this helps.
Thank you
Habib
Thank you for the reply Habib!
The Insight custom field is not visible in the list for some reason. It might be because the product used for this field installation was Product Discovery. Not sure though.
Does it change anything?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Error -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.