The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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