JIRA integration API improvements

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

The Integrations API's GET call for JIRA settings has some inaccurate information. It shows vulnerability_events = False when the JIRA integration is set up for vulnerability issues. Additionally, the project_keys return a list of keys, but not the project key that is tied to the project for vulnerability issues. This makes it difficult to automate creating of JIRA issues from vulnerability records, since the mapping to the project that holds the vulnerability issues does not exist. I suggest creating a key-value pair in the list of project IDs for the project ID and what integration it is linked to (JIRA issues or creating issues from vulnerabilities).

Edited by 🤖 GitLab Bot 🤖