# Unable to create idea using create issue api?

**URL:** <https://community.developer.atlassian.com/t/unable-to-create-idea-using-create-issue-api/89899>\
**Category:** Jira Cloud\
**Tags:** jira-cloud, jira-product-discovery\
**Created:** [March 5, 2025, 2:33am UTC](https://community.developer.atlassian.com/t/unable-to-create-idea-using-create-issue-api/89899 "2025-03-05T02:33:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LongKangFan](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@LongKangFan](https://community.developer.atlassian.com/u/LongKangFan)\
**Post date:** [March 5, 2025, 2:33am UTC](https://community.developer.atlassian.com/t/unable-to-create-idea-using-create-issue-api/89899/1 "2025-03-05T02:33:49Z")

</div>

Hi, community,

I am trying to create an idea using API in a discovery project using Golang. The **idea** is configured only to require a `summary` field. However, the code works when I create another issue type like `Task`, it fails when it comes to `Idea`

**This is my code:**

```auto
func TestCreateIdea(t *testing.T) {
	c := client.NewDefaultClient() // returns jira.Client
	i := new(jira.Issue) // Init a new issue

    //Set the `Project`, `Summary`, `IssueType` of this issue
	p := jira.Project{
		Key: "DO",
	}
	i.Fields = &jira.IssueFields{
		Project: p,
		Summary: "GOOOD",
		Type: jira.IssueType{
			Name: "Task",
		},
	}

    // Call create function. It uses `rest/api/2/issue` api
	_, _, err := c.Issue.Create(i)
	if err != nil {
		panic(err)
	}

}

```

---

<div class="post-metadata">

**Author:** ![anon96974232](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon96974232](https://community.developer.atlassian.com/u/anon96974232)\
**Post date:** [March 5, 2025, 2:52am UTC](https://community.developer.atlassian.com/t/unable-to-create-idea-using-create-issue-api/89899/2 "2025-03-05T02:52:46Z")

</div>

Hello @LongKangFan

When the request fails, what is the error message that comes back from the REST API?  
Do you get the same error if you refer to the Idea issue type by its ID instead of its name?  
What testing have you done of the same request to the same API endpoint with your API test tool?

---

<div class="post-metadata">

**Author:** ![LongKangFan](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@LongKangFan](https://community.developer.atlassian.com/u/LongKangFan)\
**Post date:** [March 5, 2025, 3:02am UTC](https://community.developer.atlassian.com/t/unable-to-create-idea-using-create-issue-api/89899/3 "2025-03-05T03:02:56Z")

</div>

Hi @anon96974232

> Do you get the same error if you refer to the Idea issue type by its ID instead of its name?

It passes when change the name to ID!

Thanks!
