Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I move next-gen issues to an Epic via Rest API?

jiratickets March 26, 2024 edited

I get this error everytime I try to move an issue to an EPIC via a POST Rest API. I wasn't aware about the fact that it was a next-gen issue until I saw this error message. Now that I know, what should I do to eliminate this error?

The error message is provided below:

"errorMessages":["The request contains a next-gen issue. This operation can't add next-gen issues to epics. To add a next-gen issue to an epic, use the Edit issue operation and set the parent property (i.e., '\"parent\":{\"key\":\"PROJ-123\"}' where \"PROJ-123\" has an issue type at level one of the issue type hierarchy). See <a href=\"https://developer.atlassian.com/cloud/jira/platform/rest/v2/\"> developer.atlassian.com </a> for more details."],"errors":{}}

1 answer

1 vote
Trudy Claspill
Community Champion
March 26, 2024

Hello @jiratickets 

Welcome to the Atlassian community.

You need to use a different API endpoint, just as the message says.

Are you unclear about using the Edit operation?

jiratickets March 27, 2024

Hi Trudy, 

Yes, I am a bit unclear on the Edit operation. I am using JIRA APIs to create jira issues with attachments. But, now that I need to link it to an existing EPIC, I get this issue. 
What do you mean by I need to use a different API endpoint? Could you please explain?

Thank you :)

Trudy Claspill
Community Champion
March 27, 2024
Trudy Claspill
Community Champion
August 13, 2024

Hello @jiratickets 

Were you able to resolve your issue with the answers I provided, or do you still have questions on this topic?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events