Forums

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

How to programmatically get Jira Service Desk Calendar settings

Artem Grotskyi
Contributor
April 11, 2018

Hi all,

I would like to get access to the Calendar settings vi script runner.

I know that it is possible to get, lets say, calendar information in Jira Agile, for example: WorkingDaysDao.

Is there any equivalents of such classes in Jira Service Desk?

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
PerÖ
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!
May 19, 2021

Answering myself since I, typically, found the solution 15 minutes after posting this:

WITH redLink =CONCAT("{panel:bgColor=#E65A5A}", key, "{panel}"):

 

Simple enough!

Nicholas Ellis _ALM Works_
Atlassian Partner
May 19, 2021

Hi Pero,

I see that you already figured out the answer for yourself.  I just wanted to explain why it works that way.

When we have a variable like key, Structure will try to define it. It will try to guess what it is based on its name.  Key matches the exact name of a jira field so it picks it up automatically.  But if I wanted to print out "key is KEY-123" I would do it like this:

CONCAT("key is ", key)

The concat function concatenates, or adds two strings together.  Here the first string is "key is " meaning this key is just treated as letters, because it is in a quoted string, while the second key is treated as a variable and pulls the key from the current issue into the formula.

I hope this helps.

Cheers,

Nick Ellis

[ALM Works]

Like Dave Rosenlund _Trundl_ likes this
TAGS
AUG Leaders

Atlassian Community Events