Get full url of Jira screen

Dan27 May 6, 2018

Hi,

I would like to separate a script between Structure screen and the other screens.

So, I need the full url address to check whether the string "StructureBoard" is included inside.

 

Thanks,

Daniel 

2 answers

0 votes
Egor Tasa [ALM Works]
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 Leaders.
May 7, 2018

Hi Daniel,

Would it be possible to elaborate, where and how the script is being run? If you could provide a more detailed use case, we may be able to suggest a solution.

Regards,
Egor Tasa

ALM Works

0 votes
Adrián Plaza [DEISER]
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 Leaders.
May 7, 2018

Hi @Dan27,

 

I think this can be helpful for you:

def thr = Thread.currentThread()
log.error(thr)

This is an example of the output:

Thread[http-nio-8080-exec-9 url:/jira/rest/scriptrunner/latest/user/exec/ username:admin ,5,main] 

Can you try this?

 

Cheers,

Adrián. 

Dan27 May 7, 2018

Hi @Adrián Plaza [DEISER],

thanks , this is the output:

Thread[https-jsse-nio-8080-exec-18,5,main]

 

Do you have another idea ..?

Adrián Plaza [DEISER]
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 Leaders.
May 7, 2018

Sorry @Dan27 I don't have more ideas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events