how to import a feature file to an issue?

suchithra cn 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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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