Forums

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

Using Postman to add all projects in Jira as options in a select list field via the REST API

İclal Aslan
Contributor
May 23, 2025

Using Postman to add all projects in Jira as options in a select list field via the REST API, and automatically updating the custom field whenever a new project is added.

1 answer

1 accepted

0 votes
Answer accepted
Aaron Williams
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 24, 2025

Hi @İclal Aslan 

This is a very interesting idea, and I can see great value in it for a customer needed to request access to a specific project or multiple projects. 

Have you started to create this? Or do you need help to see if this is achievable?

Thanks

Aaron. 

İclal Aslan
Contributor
May 25, 2025

Hi,

I need help if this is achievable but I think with END Point this looks achievable right?

Aaron Williams
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 26, 2025

Well, I really like this idea and it seems achievable. 

I will work on this tomorrow as I see some value for our instance too. If I get it working I will share some screenshots with you. 

I will try and achieve the entire process within automation for Jira though, I always like to exhaust Jiras tools before looking at 3rd party offerings. 

Thanks,

Aaron. 

 

İclal Aslan
Contributor
May 26, 2025

Thank you so much! Waiting to hear from you.

Aaron Williams
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 27, 2025

Hi @İclal Aslan 

I think I have managed to achieve this using only automation for Jira. 

If you go to the global automation section and set the following 

Trigger: Project created

Then: Send web request with this URL https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-post

Changing to your instance name and use custom field id and context id. 

Then set up the request as such:

PXL_20250527_110108711.jpg

This will create an option in the custom field when a new project is created. 

It would be beneficial to do the reverse for when a project is removed or archived. 

 

Let me know if this has helped you achieve what you needed. 

Thanks

Aaron. 

İclal Aslan
Contributor
May 27, 2025

Hi Aaron,

First of all thank you so much for your help.

I think my url might me wrong. Can you check? I use my user as actor and my password as Authorization Value.

https://myinstance.net/rest/api/3/field/customfield_11255/context/1234567890123/option

,.png

 

I also tried the action as work item updated so that I can try the automation.

Thank you so much!

Aaron Williams
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 27, 2025

@İclal Aslan I am unable to check your instance name. But it will be in the URL before atlassian.net/

You then need to set up the authorisation like so using your "Basic email:API key" the email and API should be encoded for security. 

İclal Aslan
Contributor
May 27, 2025

Had to find the contextId but found it and worked like a charm! This is great! Thak you so much for your help!

Aaron Williams
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 27, 2025

Very welcome, thanks for the idea though. Will come in very handy for our companies instance. 

 

Thanks. 

Aaron. 

İclal Aslan
Contributor
May 27, 2025

I will use this at JSM. So that people can open requests (like access request) for Jira projects. In JSM we can't use project picker field. Just like you said!

Thanks again.

İclal Aslan
Contributor
June 4, 2025

Hi @Aaron Williams ,

Do you think there is a way to add all of the projects as options for start?

 

Thanks.

Aaron Williams
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.
June 5, 2025

Hey @İclal Aslan 

It would be very difficult to achieve this solely in Jira, the looping functionality and pagination might be a blocker. 

But, this is achievable via a python script or using a platform like Tines. 

Thanks

Aaron. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events