“baseURL” - as I understand this is base url of my app. not of the instance on which it’s installed as this file is provided by my app. So I don’t understand how could I use that to perform a jira rest api request.
baseUrl is “overloaded”. In the Connect descriptor, yes, it is the base URL of your app. In the lifecycle payload, it means:
URL prefix for this Atlassian product instance. All of its REST endpoints begin with this
baseUrl. Do not use the
baseUrl as an identifier for the Atlassian product as this value may not be unique.
For your summary questions:
- do i correctly I understand that jira api request is done with the domain name of the specific instance?
Yes. That’s provided in the lifecycle payload as
- how can I get some kind of company id?
You can’t. At least, you can’t get anything that identifies a company. You can get both a URL for the site, and the
clientKey does uniquely identify an instance of Jira, even if the site name changes. For most cases, that is close enough.