Forums

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

Cannot install atlassian-connect.json to private Jira, but it works on Jira Cloud

iPotato July 18, 2022

When I upload an application to local jira, jira shows error

```

Cannot install file https://f969-115-206-136-194.ngrok.io/atlassian-connect.json。Please check whether the file is valid

```

But I can upload it to Jira Cloud, and see the application

1 answer

1 accepted

1 vote
Answer accepted
Walter Buggenhout
Community Champion
July 18, 2022

Hi @iPotato and welcome to the Community!

Jira Cloud and on Prem (server / data center) are different technologies. I am not sure what app you are trying to install, but if it is from the marketplace, make sure to download the version for the proper platform. It is not necessarily so that a server or data center version of a cloud app is available or vice versa.

Hope this helps!

iPotato July 18, 2022

I want to upload custom application by Jira Connect like

 {
"name": "Hello World",
"description": "Atlassian Connect app",
"key": "xyz.example.myapp",
"baseUrl": "https://f969-115-206-136-194.ngrok.io",
"vendor": {
"name": "MyComp",
"url": "https://my.comp.com"
},
"authentication": {
"type": "none"
},
"apiVersion": 1,
"modules": {
"generalPages": [
{
"url": "/index.html",
"key": "index",
"location": "system.top.navigation.bar",
"name": {
"value": "Greeting"
}
}
]
}
}
Walter Buggenhout
Community Champion
July 18, 2022

Hi @iPotato,

connect is a development platform for cloud, as that tutorial page clearly states. It is not for server or data center. You mentioned in your initial question that the application loads perfectly fine on cloud but not on your local Jira.

Unless I have misunderstood what your local Jira is, it is perfectly normal that your cloud app doesn't work there. If you want to built an app for a data center product, you can get started here

iPotato July 18, 2022

It helps a lot, thanks very much!

iPotato July 18, 2022

I deploy Jira on local by docker, here is the link

Which tutorial of plugin development should I use?

iPotato July 19, 2022

Flow the tutorial, I create a project, but some dependencies cannot be parsed like

jta:jta:jar:1.0.1
webwork:pell-multipart-request:jar:1.31.0

I have tried to download them from mvnrepository ,  it shows 404

So which repository can I use?

iPotato July 19, 2022

I solved it by myself, open pom.xml:

1. Use atlassian maven

<repositories>
<repository>
<id>atlassian-maven</id>
<url>https://packages.atlassian.com/mvn/maven-external/</url>
</repository>
</repositories>

Check atlassian repository list here

2. Modify Jira version

<properties>
<jira.version>8.9.1</jira.version>

...
</properties>

3. Modify Jta version

<dependencies>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-api</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>

<!-- exclude 1.0.1, it not exist in atlassian maven -->
<exclusions>
<exclusion>
<groupId>jta</groupId>
<artifactId>jta</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- include 1.0.1b -->
<dependency>
<groupId>jta</groupId>
<artifactId>jta</artifactId>
<version>1.0.1b</version>
</dependency>

...
<dependencies>

 

Suggest an answer

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

Atlassian Community Events