Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable Development integration in JIra #2985

Open
jtnord opened this issue Jun 13, 2022 · 9 comments
Open

enable Development integration in JIra #2985

jtnord opened this issue Jun 13, 2022 · 9 comments
Assignees
Labels

Comments

@jtnord
Copy link

jtnord commented Jun 13, 2022

Service(s)

Jira

Summary

Please enable the Jira SCM developer integration
https://confluence.atlassian.com/jirasoftwareserver/configuring-development-tools-938845350.html

it is painful to have to link GitHub SCM commits PRs to Jenkins JIra issues when Jira can do all this automatically.

Additionally some people leave it as a comment, and others leave it as a web link meaning it is not always easy to find the information quickly.

By configuring the developer integration linking commits/PRs to jira tickets becaomes automatic, and you can even see in Jira if the commit is released or not.

If desired a workflow could then be implemented that could close (or mark the ticket as merged but unreleased) when a PR is merged, and / or in the future pick up a release so automatically mark the issue as closed when a tag is made containing the commit.

Reproduction steps

  1. create a Jira issue
  2. create a commit and PR where the title contains the Jira ID

Expected results

The development tab in JIra contains links to the commit and PR

Actual results

Nada

@github-actions github-actions bot added jira triage Incoming issues that need review labels Jun 13, 2022
@dduportal dduportal added this to the infra-team-sync-next milestone Jun 13, 2022
@dduportal dduportal self-assigned this Jun 13, 2022
@dduportal
Copy link
Contributor

Thanks @jtnord for raising this request. Seems a legit request (I can feel you) as it is (one the many) reason(s) why we moved the INFRA issue tracker to GitHub instead of JIRA (along with no efficient search, no discoverability, slow, painful UX, hard automation that requires a lot of expertise,e tc.).

Ping @olblak @daniel-beck @MarkEWaite @timja I need help from your memory: I might remember that we had an issue with the current JIRA distribution that we have at issues.jenkins-ci.org (hosted by the Linux Foundation) to integrate this plugin.

Something along the combination of "not atlassian cloud" and "SSO with our LDAP and not GitHub's".

Found some old issues but I can't strictly remember the reason (as I would like to re-evaluate it to see if we can enable it to help developers):

@dduportal dduportal removed the triage Incoming issues that need review label Jun 13, 2022
@daniel-beck
Copy link

IIRC we disabled this when it kept eating through the API limits.

@dduportal
Copy link
Contributor

Looks like that there is a github app for that : https://github.com/atlassian/github-for-jira to benefit from api v4 (and no rate limit)

@jtnord
Copy link
Author

jtnord commented Jun 13, 2022

Strange I thought it used events apart from the optional sync

@timja
Copy link
Member

timja commented Jun 13, 2022

Looks like that there is a github app for that : atlassian/github-for-jira to benefit from api v4 (and no rate limit)

The app is useless for non cloud users:
https://github.com/atlassian/github-for-jira#requirements

It uses an OAuth token which has 5000 API requests per hour from what I remember.
You must set this up with a separate bot user not used for anything else as it will kill API limits otherwise.

It's also easy to accidentally use your own account when configuring it (this happened to my account at work).

The app is sometimes not that quick too because of rate limiting.

@dduportal
Copy link
Contributor

Looks like that there is a github app for that : atlassian/github-for-jira to benefit from api v4 (and no rate limit)

The app is useless for non cloud users: https://github.com/atlassian/github-for-jira#requirements

It uses an OAuth token which has 5000 API requests per hour from what I remember. You must set this up with a separate bot user not used for anything else as it will kill API limits otherwise.

It's also easy to accidentally use your own account when configuring it (this happened to my account at work).

The app is sometimes not that quick too because of rate limiting.

Thanks for checking and sharing!

@daniel-beck
Copy link

You must set this up with a separate bot user not used for anything else as it will kill API limits otherwise.

Against GH ToS?

@timja
Copy link
Member

timja commented Jun 14, 2022

You must set this up with a separate bot user not used for anything else as it will kill API limits otherwise.

Against GH ToS?

Not as far as I can tell. Each person on a free account is allowed one machine account.
https://docs.github.com/en/site-policy/github-terms/github-terms-of-service#2-account-requirements

@dduportal
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants