Forums

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

groovy script for concatenating the summary and created date of a ticket?

Michael
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.
March 12, 2020

Hi again everyone,

I'm a new user of groovy, and I'm trying to learn its ins and outs but even this simple task has me stumped... I'm trying to concatenate a subtask's summary with it's created date.

 

From what I've read in Jira documentation / groovy documentation I'm using the following:

String summary = "issue.get("summary")" + " - " + "issue.get("created")

 

Can someone please help me understand what I'm doing wrong?

 

Thanks,
~Mike

1 answer

0 votes
Boris Berenberg
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.
June 8, 2015

Can you reproduce the issue using curl? It sounds like there is a server or proxy error occurring. Any errors in the JIRA logs when this happens?

Ignacio
June 9, 2015

Hello Boris, thanks for your answer!

I've  used Curl and Wget and I keep getting the same error. No, there are no entries in JIRA log, it seems that is something related to the communication between my client and the JIRA server, but only when I use HTTPS. There are no firewalls on the network and the only proxy configured is the one from JIRA.

I have installed the CA on my Debian and when I try to get the attached file from any ISSUE the same error happens: "502 Bad Gateway" or "HTTP /1.1 Service Unavailable."

 

Thanks

 

 

Boris Berenberg
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.
June 9, 2015

Do you have a proxy between JIRA and the world? Maybe the proxy is handling something wrong?

Ignacio
June 9, 2015

Between JIRA and the world, yes, but there are no messages that indicate that there is something wrong. Really weird.

Boris Berenberg
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.
June 9, 2015

If you execute the curl attempt directly on the JIRA server and bypass the proxy, does the issue re-occur?

Suggest an answer

Log in or Sign up to answer