You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi , Atlassian send us a recommendation to improve the login connection, because, if the script cycle is over 130.000 registres, the communication is closed by peer, this is the script to improve the connection.
This is for attachments, we have a hi quatity of elements to migrate 👍
how time you/yours get to improve this conecction?
This is the code atlassian send us
import logging
import sys
from jira import JIRA
from requests.adapters import HTTPAdapter
I believe this is the question you're asking, correct me if I'm wrong.
How much time will it take to implement this improvement on our end?
First, you need to understand such implementation then you can estimate the time you need. However, can you elaborate what help you require from jiraone? Are you using jiraone's script to update something within your site? If yes, then please add more context to your question.
Hi , Atlassian send us a recommendation to improve the login connection, because, if the script cycle is over 130.000 registres, the communication is closed by peer, this is the script to improve the connection.
This is for attachments, we have a hi quatity of elements to migrate 👍
how time you/yours get to improve this conecction?
This is the code atlassian send us
import logging
import sys
from jira import JIRA
from requests.adapters import HTTPAdapter
logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(message)s',
handlers=[logging.StreamHandler(sys.stdout)]
)
logging.getLogger('requests').setLevel(logging.DEBUG)
logging.getLogger('urllib3').setLevel(logging.DEBUG)
class LoggingHTTPAdapter(HTTPAdapter):
def send(self, request, kwargs):
print(f"Full URL: {request.url}")
return super().send(request, kwargs)
jira = JIRA(
server='https://*****.atlassian.net',
basic_auth=('email', 'key')
)
session = jira._session
session.mount('http://', LoggingHTTPAdapter())
session.mount('https://', LoggingHTTPAdapter())
attachment_id = ********
attachment = jira.attachment(attachment_id)
print(f"Attachment filename: {attachment.filename}")
print(f"Attachment size: {attachment.size}")
print(f"Attachment content URL: {attachment.content}")
The text was updated successfully, but these errors were encountered: