Hi,
I am new to this. My script is as shown below. please help me to get last 5Hrs updated ticket details
from jira import JIRA
jira = JIRA('https://jira.spring.io')
block_size = 1000
block_num = 0
allissues = []
while True:
start_idx = block_num*block_size
issues = jira.search_issues('project=XD', start_idx, block_size)
if len(issues) == 0:
# Retrieve issues until there are no more to come
break
block_num += 1
for issue in issues:
#log.info('%s: %s' % (issue.key, issue.fields.summary))
You should use a REST call that is a search for issues, including a call for "and updated > -5h"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.