Hello - I am setting up a Project Automation Rule to send a daily email with a list of open issues with a specific criticality.
I tried to use the format highlighted in the webinar for the other week, but I cannot get my Issue Key to be hyperlinked.
When I use the below syntax I get a blank email
{{#lookupIssues}}
* <{{url}}|{{key}}>
{{/}}
When I remove the <> and use the below syntax I get an email that bullets out the full URL | then the issue key.
{{#lookupIssues}}
* <{{url}}|{{key}}>
{{/}}
I am trying to get it so the Issue Key itself is hyperlinked. Any ideas?
Finally I found the root-cause.
The problem is Domain resolution response time.
On Windows server, I put the correct DNS information (Primay and Secondary DNS), that's why when jira-client cannot receive DNS response from Primary DNS, it will query through Secondary DNS and get the response before timedout.
On Linux PC, I used only one primary DNS, and Secondary DNS is google DNS (8.8.8.8). that's why this issue just happened randomly (when primary DNS got highload)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Przemyslaw Bak,
I met the same problem with you, but my JIRA server is not using https connection.
This problem happen randomly and I have no idea when it happen.
I also tried with python 3.6, but same with python 2.7.
One more thing, I never met this problem when I use python on Windows PC.
If you found anything can solve this problem, please share.
Thank you so much,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have switched to Linux (more familiar for me platform) but still have the same error. This time I tried debugging:
Task 1
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): jira.internal.server
WARNING:root:[Errno 2] No such file or directory while doing GET https://jira.internal.server/rest/api/2/serverInfo [{'params': None, 'headers': {'Accept': '*/*', 'User-Agent': 'python-requests/2.8.1', 'Content-Type': 'application/json', 'Cache-Control': 'no-cache', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got recoverable error from GET https://jira.internal.server/rest/api/2/serverInfo, will retry [1/3] in 10s. Err: [Errno 2] No such file or directory
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (2): jira.internal.server
WARNING:root:[Errno 2] No such file or directory while doing GET https://jira.internal.server/rest/api/2/serverInfo [{'params': None, 'headers': {'Accept': '*/*', 'User-Agent': 'python-requests/2.8.1', 'Content-Type': 'application/json', 'Cache-Control': 'no-cache', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got recoverable error from GET https://jira.internal.server/rest/api/2/serverInfo, will retry [2/3] in 20s. Err: [Errno 2] No such file or directory
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (3): jira.internal.server
WARNING:root:[Errno 2] No such file or directory while doing GET https://jira.internal.server/rest/api/2/serverInfo [{'params': None, 'headers': {'Accept': '*/*', 'User-Agent': 'python-requests/2.8.1', 'Content-Type': 'application/json', 'Cache-Control': 'no-cache', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got recoverable error from GET https://jira.internal.server/rest/api/2/serverInfo, will retry [3/3] in 30s. Err: [Errno 2] No such file or directory
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (4): jira.internal.server
WARNING:root:[Errno 2] No such file or directory while doing GET https://jira.internal.server/rest/api/2/serverInfo [{'params': None, 'headers': {'Accept': '*/*', 'User-Agent': 'python-requests/2.8.1', 'Content-Type': 'application/json', 'Cache-Control': 'no-cache', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got recoverable error from GET https://jira.internal.server/rest/api/2/serverInfo, will retry [4/3] in 40s. Err: [Errno 2] No such file or directoryCan anyone shed some light how can I debug it even further ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you access JIRA now, I have the same issue with you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is working now. I made a few changes so not sure which one is the right one but one of the changes was in jira_options - previously I used the following code: jira_options = { 'server': 'https://jira.local.server/';, 'verify': 'False' } Now I am using: jira_options = { 'server': 'https://jira.local.server/';, 'verify': False } (no quotes around False). It sounds strange (I couldn't believe it is just that simple).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A quick note on your 'verify':False -- the reason you do not need quotes around the keyword False is because False is a boolean variable and not a string. Just to clarify. There are two Boolean variables in Python (same for all languages in fact): True and False and they are coded as such - no quotes.
Also, for completeness: 'False' is not the same as False; 'False' is a string value, while False is a Boolean value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Deniz Oguz [The Starware] for your answer.
But when I run the following command:
curl -k https://jira.internal.server/rest/api/2/serverInfo
I get a correct answer in json format.
I haven't heard of fiddler2 at all. But after googling a bit and installing it I found the following:
After the client received notice of the established CONNECT, it failed to send any data.
I am not familiar with it - what should I look for ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems that part of your url ia wrong. Could you check communication between your script and JIRA using fiddler2(windows) or charles(mac). It will show you every detail so it is easier to see what ia wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.