for integrating jenkins with jira i have followed the below steps
Jenkins for Jira provides a free, secure, and reliable way to connect your Jenkins server, running behind the firewall, with either Jira Cloud or Jira Service Management Cloud.
This gives your team more visibility and context on every issue in Jira, showing the latest build status or if your work has been successfully deployed to an environment.
You can also use this information to search across issues using the Jira Query Language (JQL), answering questions like “Which issues in the current sprint have been deployed to production?” You can even add these as quick filters on your boards!
To connect Jenkins for Jira and get data flowing to your Jira projects, you’ll need to perform, or delegate, the following tasks:
In Jira, install the Jenkins for Jira app
In Jira, start a connection to Jenkins
In Jenkins, install the Atlassian Jira Cloud plugin (if necessary)
In Jenkins, enter the connection credentials provided in Jira to complete your connection
In your source code management platform, or in Jenkins, edit your projects' Jenkinsfiles to set up what data is sent from Jenkins to Jira
In many teams, it makes sense to split these tasks up between team members that have the appropriate permissions and experience.
The Jenkins for Jira connection process will guide you through delegating these tasks. However, before you begin you should know who your Jenkins admin is and which of your team members are responsible for editing the Jenkinsfiles that define your Jenkins pipelines.
If you’re not sure who these team members are, reach out to the Jira project team(s) that are using Jenkins to build and deploy their code. They’ll be able to direct you to the right people.
Permissions necessary: Jira site admin
Install the Jenkins for Jira (Official) app via Atlassian Marketplace:
Log in to your Jira site and go to Apps > Explore more apps.
Search for the Jenkins for Jira (Official) app and select Get app.
Permissions necessary: Jira site admin
After installing the Jenkins for Jira app on your Jira site, you’ll need to start a connection to Jenkins.
In Jira, go to Apps > Manage your apps.
In the left sidebar, under Apps, select Jenkins for Jira.
If this is your first connection, you’ll be taken to the connection wizard. If you’ve previously connected a Jenkins server, select Connect another server to go to the wizard.
Follow the on-screen prompts in the connection wizard. This experience will vary depending on whether you are a Jenkins admin or a Jenkins admin is helping you, but in either case after giving your server a name, you’ll be provided with two credential items: a webhook URL and secret token to use in Jenkins.
To complete the connection process, you or your Jenkins admin will need to log in to Jenkins, set up the server, and use these credentials to complete a connection.
Permissions necessary: Jenkins admin
Once a Jira site admin has started a connection in Jira, you’ll need to install the Jira Cloud plugin on Jenkins to complete the connection.
Log in to your Jenkins server and go to Manage Jenkins > Plugins > Available plugins.
Search for Atlassian Jira Software Cloud and install the plugin.
If you can’t find the plugin in the Available plugins screen, it may already be installed on your server. To check:
Log in to your Jenkins server and go to Manage Jenkins > Plugins > Installed plugins.
Search for Atlassian Jira Software Cloud.
If the plugin is already installed, run any available updates.
Permissions necessary: Jenkins admin
With the Atlassian Jira Software Cloud plugin installed on your Jenkins server, and a webhook URL and secret token at hand, you can now complete the connection between Jenkins and Jira.
In Jenkins, go to Manage Jenkins > Atlassian Jira Software Cloud.
Select Add new site.
Enter your Jira site name
Enter your Webhook URL
Enter your Secret using the Jenkins credential manager.
Select Add
From the Kind dropdown, select Secret text
Paste the secret provided in the Jenkins for Jira connection wizard in the Secret field
Give your secret a descriptive name (such as your site name) in the Description field
Select Add
Use the Secret dropdown to select the secret you just entered.
Select Test connection to make sure your credentials are valid for your Jira site.
Select Save But while testing the connection getting this error :
Error message from Jira: JWT verification failed. Please make sure you configured the same secret in Jenkins and Jira