python-jira

Get release date for project version with jira-python

微笑、不失礼 提交于 2019-12-24 06:49:20
问题 I am using jira-python to generate some status reports. My issues are associated with Versions and I want to order them according to the release dates of the versions. These dates can be set in Jira under version administration, but it seems difficult to access them in jira-python! I can't find a releasedate attribute on the version object. One possibility seems to be to use the self-attribute of the version, which yields an http:/-address. Pasting that address into my browser I find a string

How do you set the fixVersions field using jira-python

戏子无情 提交于 2019-12-22 18:15:42
问题 I'm trying to update an existing JIRA using the jira-python module (http://jira-python.readthedocs.org/en/latest/). Specifically I'm trying to set the fixesVersion list of an issue. I've been trying for a while with no luck. What am I missing? issue = jira.issue('DUC-391') issue_dict = { 'fixVersions' : [{'id': '10115'}] } issue.update(fields=issue_dict) Returned stackTrace: Traceback (most recent call last): File "post-commit-jira.py", line 35, in <module> issue.update(fields=issue_dict)

Access specific information within worklogs in jira-python

折月煮酒 提交于 2019-12-18 08:52:56
问题 How can I get the minutes spent from a worklog from an issue using the jira-python library? Using the jirashell I see that the issue has the attribute issue.fields.worklog, however when I try to access that in my python code I get the error: AttributeError: type object 'PropertyHolder' has no attribute 'worklog' . If I create a jira client and do jira_client.worklogs(ticket.key) in my python code, it returns a list of Worklogs and their ids but I don't know what to do with that. I see in the

Access specific information within worklogs in jira-python

廉价感情. 提交于 2019-12-18 08:52:30
问题 How can I get the minutes spent from a worklog from an issue using the jira-python library? Using the jirashell I see that the issue has the attribute issue.fields.worklog, however when I try to access that in my python code I get the error: AttributeError: type object 'PropertyHolder' has no attribute 'worklog' . If I create a jira client and do jira_client.worklogs(ticket.key) in my python code, it returns a list of Worklogs and their ids but I don't know what to do with that. I see in the

Jira Python: Syntax error appears when trying to print

喜欢而已 提交于 2019-12-13 09:47:18
问题 from jira.client import jira options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username', 'password')) issues = jira.search_issues('jqlquery') for issue in issues: print issue I want to print the output of the jql query.However, getting syntax error on the last line "issue". 回答1: The way to print the issue keys to your command prompt is: from jira.client import jira options = {'server': 'https://URL.com'} jira = JIRA(options, basic_auth=('username', 'password')) issues

Python - JIRA - Modify Labels

笑着哭i 提交于 2019-12-11 12:54:02
问题 Having an issue updating / modifying a JIRA issue's labels. I've tried both of the below variations from the jira module documentation: issue.update(labels=['AAA', 'BBB']) OR issue.fields.labels.append(u'new_text') issue.update(fields={"labels": issue.fields.labels}) documentation With the last example I'm getting this error: JIRAError: JiraError HTTP 400 text: Field 'labels' cannot be set. It is not on the appropriate screen, or unknown. url: https://jira.XXXXXXXXXX.com/rest/api/2/issue

python JIRA connection with proxy

狂风中的少年 提交于 2019-12-10 17:48:12
问题 I'm trying to connect via python-jira using a proxy: server = {"server": "https://ip:port/jira", 'proxies': {"http": "http://ip:port", "https": "http://ip:port"}, 'verify': False, 'stream': True} cls.jira_object = JIRA(options=server, basic_auth=(user, password), validate=True) Traceback error: tests\jira_test\ticket_test.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build\bdist.win-amd64\egg\jira\client.py:217: in __init__ ??? build\bdist.win-amd64

Unable to edit custom_field(Jira-Python)

喜你入骨 提交于 2019-12-08 07:53:29
Unable to update fields for an issue in Jira-python. When I look at the raw data in JSON. It is under: {fields:{'customfield_10000':'some text'} but when I tried: issue.update(fields={'customfiled_10000':'edited'}) issue.update({'customfiled_10000':'edited'}) issue.update({fields:{'customfiled_10000':'edited'}}) issue.update(customfiled_10000='edited') All gave me response text = {"errorMessages":["Internal server error"],"errors":{}} Tried added +"0000" in Client.py data['started'] = started.strftime("%Y-%m-%dT%H:%M:%S.000%z")+"+0000" still not fixing the issue. Please Help~!! New findings ,

Unable to edit custom_field(Jira-Python)

混江龙づ霸主 提交于 2019-12-08 05:45:32
问题 Unable to update fields for an issue in Jira-python. When I look at the raw data in JSON. It is under: {fields:{'customfield_10000':'some text'} but when I tried: issue.update(fields={'customfiled_10000':'edited'}) issue.update({'customfiled_10000':'edited'}) issue.update({fields:{'customfiled_10000':'edited'}}) issue.update(customfiled_10000='edited') All gave me response text = {"errorMessages":["Internal server error"],"errors":{}} Tried added +"0000" in Client.py data['started'] = started

How do you set the fixVersions field using jira-python

。_饼干妹妹 提交于 2019-12-06 07:22:17
I'm trying to update an existing JIRA using the jira-python module (http://jira-python.readthedocs.org/en/latest/). Specifically I'm trying to set the fixesVersion list of an issue. I've been trying for a while with no luck. What am I missing? issue = jira.issue('DUC-391') issue_dict = { 'fixVersions' : [{'id': '10115'}] } issue.update(fields=issue_dict) Returned stackTrace: Traceback (most recent call last): File "post-commit-jira.py", line 35, in <module> issue.update(fields=issue_dict) File "/Library/Python/2.6/site-packages/jira/resources.py", line 193, in update super(Issue, self).update(