Let’s take a look at the steps involved to integrate Jira Defects with Jenkins CI/CD tool.
Step1:Install Jira Plugin in Jenkins
· Go to Manage Jenkins ->Plugins
![](https://static.wixstatic.com/media/15f2f3_715ebbf19fa44aa2a7fae9a5569dad25~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_715ebbf19fa44aa2a7fae9a5569dad25~mv2.png)
· Search for ‘Jira’ Plugin and add
![](https://static.wixstatic.com/media/15f2f3_6f1b32d0950242fc8ec28ac91e4d83c3~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_6f1b32d0950242fc8ec28ac91e4d83c3~mv2.png)
![](https://static.wixstatic.com/media/15f2f3_0e05b8cc22884cb2b6e6477779a824fb~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_0e05b8cc22884cb2b6e6477779a824fb~mv2.png)
Step2 :Create API Token in Jira
· Go To Account Settings->Manage Account->Security
· Click “Create and Manage API tokens”
· Click “Create API token”
![](https://static.wixstatic.com/media/15f2f3_91137db45f07413da2cb286960f6835c~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_91137db45f07413da2cb286960f6835c~mv2.png)
· Give any name and click “Create”
![](https://static.wixstatic.com/media/15f2f3_4c68abdc385d4880aec03feb008e8e91~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_4c68abdc385d4880aec03feb008e8e91~mv2.png)
· Click “copy”
Step 3: System Configuration in Jenkins
· Go back to Jenkins: Manage Jenkins->System Configuration
· Search for Jira and specify the URL
![](https://static.wixstatic.com/media/15f2f3_fe38359b19454ed29f08b0657e992229~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_fe38359b19454ed29f08b0657e992229~mv2.png)
· Click “Update Relevant Jira Issues For All Build Results”
![](https://static.wixstatic.com/media/15f2f3_3a923f8247294f9b94d32078bd72c85a~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_3a923f8247294f9b94d32078bd72c85a~mv2.png)
· Click “Add” under Credentials
![](https://static.wixstatic.com/media/15f2f3_2ee4719cec0b44fda569bef6f2bb4404~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_2ee4719cec0b44fda569bef6f2bb4404~mv2.png)
· Type “Email address “ used for Jira in “Username”
· Paste the API Token copied from Jira for the Field “Password”
![](https://static.wixstatic.com/media/15f2f3_a0d0dbcdd26a45bb9330a9d65e4f79f9~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_a0d0dbcdd26a45bb9330a9d65e4f79f9~mv2.png)
· Write some description then click “Add”
![](https://static.wixstatic.com/media/15f2f3_89f3ded174ec4896a4f306edd79ecce2~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_89f3ded174ec4896a4f306edd79ecce2~mv2.png)
Click Credentials Dropdown and look for the Added Description
![](https://static.wixstatic.com/media/15f2f3_6195e30ef9cd4328b3e3b054798f6758~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_6195e30ef9cd4328b3e3b054798f6758~mv2.png)
· Click “Validate “and look for the success
![](https://static.wixstatic.com/media/15f2f3_f764ce99bf3247a29cd9e4d12b13201c~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_f764ce99bf3247a29cd9e4d12b13201c~mv2.png)
Step4: Go to Configure for any Project
· Click “Save” then click on any Project from Dashboard and Click “Configure”
· Go to Post Build Actions ->Jira: Update relevant Issues and under Issue Selector ->Explicit Selector then mention the Defect ID’s then click ‘Save’.
· After the Build is Run you can see that the Issues in Jira gets the updates of the Jenkins
![](https://static.wixstatic.com/media/15f2f3_21e66ea598ca412babf479fa5a188836~mv2.png/v1/fill/w_49,h_26,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/15f2f3_21e66ea598ca412babf479fa5a188836~mv2.png)