I would really recomend that you make some python script...
This way you have much more controll over the logic of execution
plus python is installed in ubuntu by default... And you get the bonus
to learn a litle bit a programming in awesome python :)
I have been using this lib in production and has not failed me...
from jira import JIRA
api = JIRA(
server="https://jira.atlassian.com", # company root jira address
basic_auth=("username","password")
)
jiraIssues = this.api.search_issues(f'project = MAB AND status = "TESTING"')
for jiraIssue in jiraIssues:
print(jiraIssue)
You can install it with this command...
pip install jira
You can even use it in shell :D
> $ jirashell -s http://jira.atlassian.com <JIRA Shell
> (http://jira.atlassian.com)>
>
> *** JIRA shell active; client is in 'jira'. Press Ctrl-D to exit.
>
> In [1]: issue = jira.issue('JRA-1330')
>
> In [2]: issue. issue.delete issue.fields issue.id issue.raw
> issue.update issue.expand issue.find issue.key issue.self
>
> In [2]: issue.fields. issue.fields.aggregateprogress
> issue.fields.customfield_11531 issue.fields.aggregatetimeestimate
> issue.fields.customfield_11631
> issue.fields.aggregatetimeoriginalestimate
> issue.fields.customfield_11930 issue.fields.aggregatetimespent
> issue.fields.customfield_12130