Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Project Automation - Smart Value - Issue URL in Email

Emily Lukasik
Contributor
June 23, 2020

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?

 

6 answers

0 votes
Mingfei Jiang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2019
0 votes
haipl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2017

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)

0 votes
haipl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 19, 2017

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,

0 votes
Przemyslaw Bak
Contributor
November 9, 2015

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 directory

Can anyone shed some light how can I debug it even further ?

birong ye
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 5, 2016

Could you access JIRA now, I have the same issue with you.

Przemyslaw Bak
Contributor
January 5, 2016

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).

Charles Bovalis
March 22, 2019

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.

0 votes
Przemyslaw Bak
Contributor
September 27, 2015

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 ?

 

0 votes
Deniz Oğuz - The Starware
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 25, 2015

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events