Hello Community,
I was using Jira Align API's for story creation which was working fine until yesterday and today I am seeing a weird error when doing the same. Below is the error I am receiving while creating the Story via API.
Any leads are appreciated.
Cannot create story. Following properties: 'owner' are required.
URL - I am using
https://xxxx.jiraalign.com/rest/align/api/2/Stories
Hi @HanumaSiva Chikkam ! Thanks for reaching out! I tried your json and it appears to work for me (after changing some of the numbers to match my own instance). Did you try changing the Owner ID value to something else (another valid user)? Curious if it has to do with the user record. Let me know if you can create a story by changing some of the variables.
Hi, I tried with different user id's and still the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another troubleshooting trick is to strip out all the non-required fields from the json to see if you can create the story. Check whatever field are required and only include those in the payload...see if that works.
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.
I was just able to recreate the error by making the "Assignee" field on a story required. Can you check the details panels settings for the portfolio to see if assignee is required? If it is, trying removing the requirement to see if you can create the story.
Additionally, I see you've set a team in the json...are the individuals you are assigning to the story part of that team? Check that too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The assignee field is mandatory as per company config. This issue is not seen when creating manually and then trying to GET that story via API, I can see the JSON fine and I compared it with the POST as well I don't see any variation in the data sent in JSON for creation but its giving the error.
JSON - GET payload
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@HanumaSiva Chikkam so you were able to manually create the same story via the UI, but the same data wouldn't pass through the API POST command with all the attributes of the story being the same (specifically the Assignee / OwnerID)?
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.
At this point I think you'll need to get Atlassian Support involved. Submit a ticket here: https://support.atlassian.com/contact/#/
Hopefully support can dig in a little deeper to see what might be up with your instance :)
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.
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.