Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Issue in creating epic and feature using REST API

I am facing issue in creating feature and program epic  below are the details:

Input:

{
    
    "fields": {
        "project": {
            "id""102",
            "key""AK" 
        },
        "summary""JIRA OAUTH POC TESTING- issuetypes-feature",
        "issuetype": {
            
            "name" : "Feature"
        },
        "assignee": {
            "name""user@domain.com"
        },
        
        "description""testing Jira Rest endpoints",
        "duedate""2023-10-28"
       
        
    }
Output:
{
    "errorMessages": [],
    "errors": {
        "issuetype": "The issue type selected is invalid."
    }
}
same way it responds when I use issuetype as "Program Epic"
"issuetype": {
            
            "name" : "Program Epic"
        }
Even if I send id in issuetype , I am getting the same error response. 
Can you please help troubleshooting the above impediments?

Thanks,
Madhura

2 answers

0 votes
Rachit Singhal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 16, 2023

Hi @Madhura Lodam ,

 

Can you please confirm if the issue type that you are selecting is in the scope of the project where you are trying to create the issue and your project type, is it team-managed or company-managed?

 

Additionally, can you please check if any condition/validator are mapped to the "Create" transition of the workflow associated with the issuetype that you want to create?

Hi @Rachit Singhal ,
Thanks for your response. 
Yes the issuetype I am selecting is in the scope of the project where I am trying to create the issue.

There is no condition/validator mapped to create transition of the workflow associated with the issuetype that I want to create.

The issue still exists. Can you please guide and suggest what can be done here?

0 votes
Marc Koppelaar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Oct 16, 2023

Hi @Madhura Lodam 

It might be that you are running into the issue that relates to using the same named issue type in Team and Company managed issue types.

See: https://jira.atlassian.com/browse/JRACLOUD-75176 

IT might, otherwise check that the issue of the types you want to make are on the project AK

Hi @Marc Koppelaar 

Thanks for your response.

The project has access to the specified issuetype , I am able to create the same issuetype under the same project manually but not through the rest api.

Can you please suggest what must be going wrong?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events