Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to integrate jenkins to Jira

Vikram April 12, 2025

I want to integrate jenkins to jira , on Jira I don't have complete Admin rights, like I am able to create stories, task ,subtask , can add comments , can assign it to anyone. When I am trying to integrate jenkins with Jira. I AM ABLE TO USE MY ACCESS TOKEN AND CLOUD JIRA INSTANCE URL and validated Connection and it was succsess but when I am trying to publish the build info on a stories comment I am not able to do so getting 

 

Status 302 response or it shows that not able to find the project . 

 

So I want to know do I need full admin rights to perform integration successfully? If not then what should I do to integrate jenkins with jira.  

4 answers

0 votes

Hi @Vikram

You’re running into a common limitation—most Jenkins-to-Jira integrations require higher-level admin permissions to post updates like build info directly to issues. This is often due to how the APIs handle authentication and write access to specific fields or projects.

But no, full admin rights aren’t always necessary—it depends on the integration method you're using.

If you're looking for a way to push build updates, track deployments, and sync Jenkins activity to Jira without needing global admin rights, OpsHub Integration Manager (OIM) supports this. It uses secure, API-based communication and works even when users have limited Jira roles—making it a good fit in locked-down environments.

It also gives you more control over what gets synced and where, without requiring plugins or elevated tool permissions. Let me know if this helps your query or you need more help!

0 votes
Mark Rekveld - Marvelution
Community Champion
April 13, 2025

Hi @Vikram 

What Jira app or Jenkins plugin are you using, or want to use to integrate Jenkins with Jira?

Some may need Site Administrator access where others only require Project Administrator access.

Cheers,
Mark

Vikram April 13, 2025

I am using Jira plugin, also I tried with Http request plugin. 

I am using my project jira instance. 

 

Mark Rekveld - Marvelution
Community Champion
April 13, 2025

For the Jira plugin, you will need configure the Jira cloud instance first followed by possible additional actions per job in Jenkins. See the documentation of the plugin for details. You do need to make sure that the account you use to integrate has all the permissions needed to perform the actions you want to execute. It can be tricky find the blocking issue and resolve it.

If you use multi branch pipelines as foundation of your jobs in Jenkins, then you can also go with Atlassian Jira Software Cloud, this plugin for Jenkins also requires an app in Jira, and will simplify your integration a bit, but it will only show the latest build information within Jira. Check the app and plugin pages for details on how to use this option.

Next up is Jira Integration in combination with Jenkins for Jira, disclaimer I'm the developer of this option, supports all options for Jenkins jobs, and can show the full history of the builds in Jira.

Vikram April 13, 2025

I have a freestyle job on Jenkins, I have permission to create a issue or comment on any ticet . But i don't have permission to delete any existing ticket or subtask. I am using company's Jira credential. while logging in to jira manually I need to.authenticate through a authentication tool. Through Jenkins I used API token and when I checked to validate connection on jenkins it showed success message. 

 

. Also I have tried all the steps mentioned below

  • when I am trying to update the issues by using post build options I am not able to do so basically it shows that can't find the specific project(manually I can see the project available on Jira)
  • When I tried with HTTP Request Plugin , it return response message HTTP/1.1 302 Found 

Can you suggest me what I can do to publish the build info on ticket as comment successfully.

 

Mark Rekveld - Marvelution
Community Champion
April 16, 2025

The Jira plugin from the Jenkins community has not seen any net new development in some time now. The 302 found response from Jira could indicate that the plugin is not compatible with the current Jira Cloud Rest API.

Given that you use a Freestyle job I only see two options

  1. Reach out to the maintainers of the Jira plugin, and see if they can help resolving your blockers.
  2. Try the Jenkins for Jira app, disclaimer this is mine and is paid. It doesn't use comments to show build to work item relations but instead has dedicated panels and view for this.

I don't see the official app as an option for you since that app is liked to multi branch pipelines and doesn't support freestyle jobs.

 

0 votes
Vikram April 13, 2025

Want to know do we need a complete admin rights ? And what may be else I can do to successfully publish my jenkins job status notification on jira ticket 

Mark Rekveld - Marvelution
Community Champion
April 28, 2025

Hi @Vikram 

That depends on the app/integration tool you use.

The official app requires you to be Jira Site administrator and Jenkins administrator.

My app you either need Project Administrator or Site Administrator in Jira and Jenkins Administrator

In both cases you can also delegate the actions in Jenkins to another user. Both app provide directions for this.

Cheers,
Mark

0 votes
Trudy Claspill
Community Champion
April 12, 2025

Hello @Vikram 

Welcome to the Atlassian community.

What are the exact steps you are executing when you say

"trying to publish the build info on a stories comment"?

 

Vikram April 13, 2025

I am trying to publish the build status notification on an existing story in the form of comment 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events