Forums

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

API rest and day off

alexandre_antoine February 21, 2020

Hello

Can the Jira API REST call the Standard Working days and the Non Working days on the board ?

Best regards

4 answers

1 accepted

0 votes
Answer accepted
David_Bakkers
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.
April 4, 2020 edited

There are lots of things you can get and set for a board. Although I've never tried to get or set those values myself, I thought I'd give it a go...

I tried using a GET to /rest/agile/1.0/board/{boardId}/configuration to see if it was returned there. The set returned contained exactly as described in the API documentation; the configColumn and its sub-values.

I then thought it might be returned using GET to /rest/agile/1.0/board/{boardId}/properties/{propertyKey} but since I didn't know what the property key was to query on, I tried getting a list of the properties first with /rest/agile/1.0/board/{boardId}/properties.. but the set of keys that came back was empty!

Hmm. It seems my board has no properties

So, then I tried looking at the features using a GET to /rest/agile/1.0/board/{boardId}/features, but all I got back was a 404 error :

<status-code>404</status-code>

<message>null for uri: https://blah-blah-blah/rest/agile/1.0/board/12051/features</message>

Hmmmm. It seems my board has no features either, or the REST API doesn't like that endpoint.

OK, I'm using Jira Server, so some of those REST API calls might yield different results for Jira Cloud, but it seems that since setting Working Days is done via the Board's configuration, and the only part of the configuration returned is configColum (the Columns settings), then it looks like you can't get or set Working Days via the REST API, only the web interface.

0 votes
David_Bakkers
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.
April 4, 2020

There are lots of things you can get and set for a board. Although I've never tried to get or set those values myself, I thought I'd give it a go...

I tried using a GET to /rest/agile/1.0/board/{boardId}/configuration to see if it was returned there. The set returned contained exactly as described in the API documentation; the configColumn and its sub-values.

I then thought it might be returned using GET to /rest/agile/1.0/board/{boardId}/properties/{propertyKey} but since I didn't know what the property key was to query on, I tried getting a list of the properties first with /rest/agile/1.0/board/{boardId}/properties.. but the set of keys that came back was empty!

Hmm. It seems my board has no properties

So, then I tried looking at the features using a GET to /rest/agile/1.0/board/{boardId}/features, but all I got back was a 404 error :

<status-code>404</status-code>

<message>null for uri: https://blah-blah-blah/rest/agile/1.0/board/12051/features</message>

Hmmmm. It seems my board has no features either, or the REST API doesn't like that endpoint.

OK, I'm using Jira Server, so some of those REST API calls might yield different results for Jira Cloud, but it seems that since setting Working Days is done via the Board's configuration, and the only part of the configuration returned is configColum (the Columns settings), then it looks like you can't get or set Working Days via the REST API, only the web interface.

 

0 votes
David_Bakkers
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.
April 4, 2020

There are lots of things you can get and set for a board. Although I've never tried to get or set those values myself, I thought I'd give it a go...

I tried using a GET to /rest/agile/1.0/board/{boardId}/configuration to see if it was returned there. The set returned contained exactly as described in the API documentation; the configColumn and its sub-values.

I then thought it might be returned using GET to /rest/agile/1.0/board/{boardId}/properties/{propertyKey} but since I didn't know what the property key was to query on, I tried getting a list of the properties first with /rest/agile/1.0/board/{boardId}/properties.. but the set of keys that came back was empty!

Hmm. It seems my board has no properties

So, then I tried looking at the features using a GET to /rest/agile/1.0/board/{boardId}/features, but all I got back was a 404 error with the message "null for uri: https://blah-blah-blah/rest/agile/1.0/board/12051/features"

Hmmmm. It seems my board has no features either, or the REST API doesn't like that endpoint.

OK, I'm using Jira Server, so some of those REST API calls might yield different results for Jira Cloud, but it seems that since setting Working Days is done via the Board's configuration, and the only part of the configuration returned is configColum (the Columns settings), then it looks like you can't get or set Working Days via the REST API, only the web interface.

0 votes
David_Bakkers
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.
April 4, 2020 edited

There are lots of things you can get and set for a board. Although I've never tried to get or set those values myself, I thought I'd give it a go...

I tried using a GET to /rest/agile/1.0/board/{boardId}/configuration to see if it was returned there. The set returned contained exactly as described in the API documentation; the configColumn and its sub-values.

I then thought it might be returned using GET to /rest/agile/1.0/board/{boardId}/properties/{propertyKey} but since I didn't know what the property key was to query on, I tried getting a list of the properties first with /rest/agile/1.0/board/{boardId}/properties.. but the set of keys that came back was empty!

Hmm. It seems my board has no properties

So, then I tried looking at the features using a GET to /rest/agile/1.0/board/{boardId}/features, but all I got back was a 404 error with the message "null for uri: https://blah-blah-blah/rest/agile/1.0/board/12051/features"

Hmmmm. It seems my board has no features either, or the REST API doesn't like that endpoint.

OK, I'm using Jira Server, so some of those REST API calls might yield different results for Jira Cloud, but it seems that since setting Working Days is done via the Board's configuration, and the only part of the configuration returned is configColum (the Columns settings), then it looks like you can't get or set Working Days via the REST API, only the web interface.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events