Forums

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

Can we dynamically update a url that is defined in our manifest file

Ankit kharola
Contributor
December 12, 2024

I am trying to create a issue from one jira instance to another currently i have hardcoded the url in my resolver.define functions as well as in the manifest file so can we dynamically change the url that is in our manifest file?

1 answer

0 votes
Humashankar VJ
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.
December 14, 2024

Hi @Ankit kharola 

You can try to implement an app in Atlassian Forge where the URL endpoints are defined generically, and the app routes requests dynamically based on input received, even though the manifest.yml file itself remains static.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Ankit kharola
Contributor
December 15, 2024

@Humashankar VJ  Hi i am trying to implement this in  atlassion forge app where currently i am hardcoding the url of another instance where i want the issue to be created but i also have to mention the url in the manifest fileinside permissions/external/fetch/backend/ "url of the instance"  now i was trying if i could accept the url from user where he wants to create the issue and then dymanically update the same url in my manifest file 

Like Humashankar VJ likes this
Humashankar VJ
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.
December 16, 2024

@Ankit kharola 

You cannot dynamically update the manifest.yml file, but you can construct the URL dynamically in your code. Use user input or configuration to set the instance URL and then use this value to make API calls

Create an interface for users to input the desired instance URL and store this URL using the storage API provided by Forge. This way, you can retrieve and use the URL dynamically - Hope this helps !!

Regards

Like Ankit kharola likes this
Ankit kharola
Contributor
December 16, 2024

@Humashankar VJ  yes sir. that is what i am doing in the app right now was just wondering if we can also change the url in the manifest. Thank you for clarifying it 

Like Humashankar VJ likes this

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