Integrating Jira cloud to DefectDojo:

JIRA Settings:

Create new scrum project and create a new issue with type as bug ( Important!!!!)

Get Issue Key:

Here the valid issue key can be obtained by clicking on the newly created issue and coping the key shown on the top of right side frame.

Create Jira API key:

Navigate to : https://id.atlassian.com/manage/api-tokens

Note down the generated key.

DefectDojo Settings:

Goto Settings:

Configure the fields as shown below, leave other settings as it is (Unless you need to change):

Now click configuration>JIRA

After enabling JIRA integration in above step, JIRA option will be available under configuration.

Select JIRA and create new jira configuration by clicking tool drop down as shown

Configure as below:

Goto settings>Jira>and click express button

url : https://<url.domain&gt;.atlassian.net/ , username= <emailid used in jira> , password: api token created in jira , issue key: <key got from above step>

Now navigate to Products>All products><Your_product>

Select settings>Edit

Configure the JIRA section as below:

to get project key, click the Jira software logo:

Now push the issue to Jira:

select the issue that needs to be pushed, click bulk edit adn select push to JIRA and submit.

Note down below details:

We need, epic name, To do ID and Completed ID,

Use the below command to get ID for ‘To Do’ and ‘Done’, this value will be used in defect dojo for  ‘open status key’ and ‘closed status key’ fields in defectdojo jira configuration.

https://<YOUR JIRA URL>/rest/api/latest/issue/<ANY VALID ISSUE KEY>/transitions?expand=transitions.fields

Here the valid issue key can be obtained by clicking on the newly created issue and coping the key shown on the top of right side frame.

https://<YOUR JIRA URL>/rest/api/latest/issue/JC-1/transitions?expand=transitions.fields

The output will be like below, copy the value shown: ( Use firefox as it displays json pretty)

To get epic name , use below command:

https://<YOUR JIRA URL>/secure/admin/ViewCustomFields.jspa

Click one View

Copy customfield ID from url

So Epic name is 10011