{"id":16999049,"url":"https://github.com/maxandersen/jiralint","last_synced_at":"2025-04-16T01:42:17.017Z","repository":{"id":1140011,"uuid":"1020161","full_name":"maxandersen/jiralint","owner":"maxandersen","description":"Experiment for trying out using Hudson to warn about problematic jiras","archived":false,"fork":false,"pushed_at":"2016-09-07T11:20:41.000Z","size":500,"stargazers_count":1,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T03:32:16.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxandersen.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-24T18:01:27.000Z","updated_at":"2015-02-27T15:02:36.000Z","dependencies_parsed_at":"2022-08-16T12:15:12.363Z","dependency_job_id":null,"html_url":"https://github.com/maxandersen/jiralint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxandersen%2Fjiralint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxandersen%2Fjiralint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxandersen%2Fjiralint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxandersen%2Fjiralint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxandersen","download_url":"https://codeload.github.com/maxandersen/jiralint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182803,"owners_count":21226123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T04:06:57.998Z","updated_at":"2025-04-16T01:42:16.976Z","avatar_url":"https://github.com/maxandersen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Experiment where I'm trying to use Jenkins for early warnings/error detection in jiras and other jira experiments.\n\nREADME     \t     this file\nrender-testcase.py   takes a report.json to render jira query results into junit.xml test reports   \n*.json               reports used by JBoss Tools team for detecting stale/non-triaged/incorrect jiras\nbzira.py             utility to make bugs returned by bugzilla query show up in jira to use in sprint-planning.\n\nSteps to use it:\n\n. Create a \u003creportname\u003e.json file with the following format:\n\n  [\n  {\n    \"nofixversion\": {\n\t\"jql\": \"(project = JBIDE AND fixVersion is EMPTY AND createdDate \u003c= -7d\",\n        \"description\": \"Issues have no fix version and was created 7 dags ago. Please triage.\"\n    }\n  },\n  {\n    \"nocomponent\": {\n      \"jql\": \"project in (JBIDE,JBDS) AND component is EMPTY AND resolution is EMPTY\",\n      \"description\": \"Issue has no component - please triage and make sure it is put in the right component or set of components.\"\n    }\n  }\n  ]\n\n+ \nEach entry has a report name used for identifying its results and then a jql for the query and finally a description which is added to each jira \"error\" message.\n  \n. Test it by running:\n\n   ```\n   $ python -u user -p secret -s jiraserver -r \u003creportname\u003e.json\n   ```\n+\nNow for each report a -test.xml file will be created containing \"test failures\" for each jira matching the result.\n\n. Setup a Jenkins build which executes the above script and enable junit reporting and you got automatic notification and tracking to help improve your jira content.\n\n\n== Bugzilla in Jira for sprint planning\n\n`bzira.py` is an experiemnt that takes the issues returned by a bugzilla query to make available in jira for prioritization. \nMain usecase is for JBoss Tools team to see Eclipse bugzillas together with its planned jiras for sprint planning.\n\nThe created issues are purely intended for sprint planning - not for mirroring. This makes the setup and mechanics simpler and require much less issues like\ndouble comments etc. \n\nRequirements:\n\nAs root, run pip to install new or upgrade existing python modules:\n\n`# pip install --upgrade bugzilla bugzillatools python-bugzilla jiraclient jira-python jira jiracli jira-cli requests`\n\nIf that doesn't work, see complete list of python modules here: https://gist.github.com/nickboldt/a3ba926186fb6b7442f6/d4297f984871ea8dbd09ad15ac197fb72e709053\n\nTo run bzira:\n\n`python -i bzira.py -u username -p password`\n\nFor now this script is hardcoded to staging Jira and a single RHT query.\n\n\n== Updating filters\n\nTo add a completely new filter requires a manual step since jira for some obscure reason does not support looking up filters by name.\n\nWhen a new filter is added you have to do the following:\n\n# Add it without an 'id' to the `.json` file\n# Run the script, ie. `python setup_filters.py  -u jiralint -p secret -f filters.json,filters-composite.json`\n# Commit the updated `.json` file which now will contain the newly created filter\n\nHave fun! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxandersen%2Fjiralint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxandersen%2Fjiralint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxandersen%2Fjiralint/lists"}