You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
I am using Jira v8.5.1 and I am currently working on a project that involves XRAY APIs.
I need to import a Cucumber Test file, so I'm using the POST /rest/raven/1.0/import/feature API.
But now, the client is asking me to import it into a specific XRAY Test Repository.
I could not find so far any solution to this in the documentation. I found how to create a repository, but not how to upload a feature file directly into it.
Do you have any idea how I could achieve this ?
Thanks a lot for your help.
Cedric
Hi Cedric,
Currently, this is not possible. However, we have this suggestion already in our backlog: XRAY-4408
Best Regards,
Team Xray
Hi Cedric Mathis,
Can you please let me know how you are using POST /rest/raven/1.0/import/feature API. I am facing issues with this API. Please send me header section and complete URL for this request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am using a simple curl for this API :
curl -H "Content-Type:multipart/form-data" -u $CREDENTIALS -F "file=@$FILE_LOCATION" https://$JIRA_URL/rest/raven/1.0/import/feature?projectKey=$PROJECT_KEY
With parameters :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
<status-code>404</status-code>
<message>null for uri: https://JIRAURL/rest/raven/1.0/import/feature?projectKey=$projectKey</message>
</status>
I am getting this response when I am hitting this request using POSTMAN. Credentials I have passed as Basic Auth in header of request
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 needed an account to Jira, but that's it. There are no specific rights (basic rights, jira-users).
The "null for uri" is like the page you're trying to reach does not exist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem!
http://mysite.atlassian.net/rest/raven/1.0/import/feature?projectKey=myproject, I have this uri and I'm authenticating with token in basic auth.
Postman returns null for uri 404, and I don't know what is missing...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Julia,
Personnaly, I did it with curl, like this, and this is working just fine:
curl -H 'Content-Type:multipart/form-data' -u $USERNAME:'$PASSWORD' -F 'file=@${IMPORT_FILE}' https://${JIRA_URL}/rest/raven/1.0/import/feature?projectKey=${PROJECT_KEY}
Just be sure that the user is defined in Jira, and that should do it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.