#!/usr/bin/env python3
#
# automatic displaying of what is assigned to fixversion
# for current and next release
from jira import JIRA
jira = JIRA('https://armbian.atlassian.net')
from datetime import datetime
month = datetime.now().strftime('%m')
year = datetime.now().year
def icons(arg):
if str(arg) == "Bug":
return ("")
if str(arg) == "Task":
return ("
")
if str(arg) == "Story":
return ("
")
if str(arg) == "Epic":
return ("
")
if ( month <= "12" ):
current_year=year+1
current_month="02"
next_month="05"
next_year=year+1
if ( month <= "11" ):
current_year=year
current_month="11"
next_month="02"
next_year=year+1
if ( month <= "08" ):
current_year=year
current_month="08"
next_month="11"
next_year=year
if ( month <= "05" ):
current_year=year
current_month="05"
next_month="08"
next_year=year
if ( month <= "02" ):
current_year=year
current_month="02"
next_month="05"
next_year=year
# current
f = open("jira-current.html", "w")
current=str(current_year)[2:]+"."+current_month
f.write('
\n