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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Can you suggest me what I can do to publish the build info on ticket as comment successfully.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.