Forums

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

how to import a feature file to an issue?

suchithra cn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 20, 2021

we wanted to import a feature file to an issue in JIRA,

we tried importing it using curl command, but after importing via curl command, all the scenarios in feature file are being created as new issues, but we required to create 1 issue with this feature file attached to that issue!! is it possible?

1 answer

0 votes
Nic Brough -Adaptavist-
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.
April 20, 2021

So you are running an import instead of trying to attach.  It's quite simple to attach files to issues programatically, you just run the REST API for attaching a file.

See https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/issue/{issueIdOrKey}/attachments-addAttachment

Suggest an answer

Log in or Sign up to answer