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.
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.
Hi,
I need help if this is achievable but I think with END Point this looks achievable right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
I also tried the action as work item updated so that I can try the automation.
Thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@İ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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Had to find the contextId but found it and worked like a charm! This is great! Thak you so much for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very welcome, thanks for the idea though. Will come in very handy for our companies instance.
Thanks.
Aaron.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Aaron Williams ,
Do you think there is a way to add all of the projects as options for start?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.