I am trying to create and upload a jira connect app,can I do it with my pyhton instead of javascript,procedure with js is mentioned here https://developer.atlassian.com/cloud/jira/platform/getting-started-with-connect/
please let me know how this can be done
Welcome to community! You can be able to use any language to code on Jira Cloud. with Python you can use micro web-framework such as Flask or bottle or web-framework such as Django, the options are endless. You can incorporate bootstrap in your UI design instead of using the ADG3 called Atlaskit if you want. You will need to get more understanding of JWT to start up with though.
@Prince Nyeche I have created an app using python(flask,flask-ngrok).I am able to load the apps successfully with the links(in my case link is 'https://618834426a38.ngrok.io') generated using flask-ngrok.
But when I am uploading it as an app to jira its showing "Problem accessing the file https://618834426a38.ngrok.io/basic.json" error message,can you please help me with it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your connect file should be "atlassian-connect.json" where it contains the configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Prince Nyeche ,yes I did it so,my app is normally working in the browser, and when I install the app in jira,it is not even opening,I used ngrok to host the app,Are there any prerequisite steps I have to follow if I use python flask
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Harshit Somani
Can you check on your developer's console to see what type of error that is thrown? that should add context on what's the problem.
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.
Can you check under the network tab while refreshing the page, to see the error message there?
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.
@Prince Nyeche ,now I am getting the above errors,I used python ngrok flask for deployement,in the begging it gave a warning that "this is a development server do not use it in a production deployment",what can I do
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Harshit Somani
it seems that your ngrok is loading an insecure page, each time you load it up do you get a different url? Can you ensure that it's using https rather than http.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think the production environment has anything to do with it, because the example from Atlassian developer blog does work. so check other factors such as the https thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Harshit Somani
What's the status on this issue, did you happen to rectify it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Prince Nyeche ,Sorry for the delay,I was not able to rectify it,I am still stuck there.
you are suggesting to use https instead of http,I think thats what I did,but still can you tell me what is the best way to do it?for your reference I will give you the code,Please let me know the solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tested your code from here, while it is able to load via ngrok.io when installed on an instance, it returns 404 when fetching the index page. Most probably due to the tunneling or being embedded on an iframe, which makes the page not to be retrieved. (not fully certain here)
127.0.0.1 - - [25/Jan/2021 21:15:20] "GET /index.html?xdm_e=https%3A%2F%2Fexample.atlassian.net&xdm_c=channel-com.example_test.myapp__hello-world&cp=&xdm_deprecated_addon_key_do_not_use=com.example_test.myapp&lic=none&cv=1001.0.0-SNAPSHOT HTTP/1.1" 404 -
127.0.0.1 - - [25/Jan/2021 21:18:06] "GET / HTTP/1.1" 200 -
I will suggest, you use Heroku instead to host this test app in order to run your test.
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.
@Prince Nyeche ,I tried to deploy using heroku, here is the link https://harshitsomani26.herokuapp.com/static/basic1.json
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.
@Prince Nyeche ,does jira accept specical charcters which need to be encoded using utf-8,can you please guide me regarding this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Prince Nyeche ,I am trying to add asset panel through the same app,but it seems like not working,can you help me with it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://developer.atlassian.com/cloud/assetsapi/introductions-and-basics/getting-started/ ,this is the link I followed for above process
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.
Can I confirm with you, is the app now able to connect using heroku or are you still having the error?
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.
@Harshit Somani glad to hear that. I think what you can do here, is to create and use an automated user credential (API token and email) via rest to authenticate putting of the asset once clicked.
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.
@Harshit Somani I meant you should authenticate the request you're posting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Prince Nyeche ,I am sorry but I think I was not able to explain the problem clearly,I'll do it again
To view the Iframe in the app,this(the image atttached) is how it is prescribed to give commands
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Prince Nyeche But I wont be able to give the same because I wont access the iframe directly I will access the Iframe from my python flask,so here how can I give the commands
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Harshit Somani
Basically that is just an endpoint. on flask, you can create an endpoint as sample_iframe.html and have query parameter with the url and you can use a variable rule to write out the string you want flask to receive in the function. The url_for function is particularly what you will use this for.
you can also look into of the ways to capture those values by using the args property in the request and then process it. I think you should really explore more on flask in order to know how it can be done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Prince Nyeche ,I don't think I have much problem over there,my main problem is when I include the module named 'asset panel' as shown in the above image,all my previously addable assets are getting deleted,if I don't include that module everything is working fine,whats the problem with that module
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Harshit Somani I'm not particularly sure why probably you can perform some troubleshooting steps to determine why it happens.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Prince Nyeche why is that I am able to display only appkey,originId and not imei,os_version in jira's Iframe,I am able to display all of them in the web but not able to do so in Jira iframe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Harshit Somani according to the docs for PUT method, it accepts origin being a dict, however I'm not sure if that includes additional fields other than appKey and originId.
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.