in infrajiratext.py [0:0]
def check_jira(pid):
jira = loadjson(JIRA)
for project in jira:
key = project['key']
catname = ''
if 'projectCategory' in project:
catname = project['projectCategory']['name']
if pid.upper() == key:
if '(Retired)' in project['name'] or catname == 'Retired':
pass
else:
print("Make the JIRA project https://issues.apache.org/jira/projects/%s read-only and flag as retired" % key)
elif catname.lower() == pid:
print("Make the JIRA project https://issues.apache.org/jira/projects/%s read-only and flag as retired" % key)