reload / github-security-jira

Github Action for integrating Security Alerts with JIRA
MIT License
53 stars 32 forks source link

Feature Request: Add support for custom fields #301

Open felickz opened 1 year ago

felickz commented 1 year ago

customfields themselves are just an additional key/value pair passed to the fields object: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#creating-an-issue-using-custom-fields

Ideally the custom field would be an arbitrary map the user passes into the github action. (inspiration for this from here)

Currently a failure will look like:

jira.exceptions.JIRAError: JiraError HTTP 400 url: ...
response text = {“errorMessages”:[],“errors”:{“customfield_#####”:“<field> is required.“}}”
kasperg commented 1 year ago

Could you elaborate how you would want to use this?

Our primary approach to configuring the actions is through environment variables. One way would be to add something like a JIRA_CUSTOM_FIELDS variable which could contain a formatted string with key/value pairs for custom fields. The values would be static though.

As far as I can tell the underlying JIRA library that we use also supports custom fields.