Comments
-
There's no feature for a team token and I'm not sure how useful such an implementation would be in the Atlassian context. However, to a service account token, in Atlassian cloud there's no generic user that you can use as a service account that won't cost you a license seat for the purpose of automating certain aspects of…
-
@James Anderson Glad to hear that. You can simply just write any valid JQL of such a request and run the script to get the results you need. jql = "project in (BB) AND updatedDate >=-3d" Have a great day ahead.
-
Hey, @James Anderson please can you download the v0.7.5 I hope this solves it for you on the windows machine.
-
It is an encoding problem, I'll try and see how this can work probably with your help I can finally stop this encoding issue in the window device. I'll push an update later today.
-
@James Anderson you're still using an older version and not v0.7.4 based on a stack. To update your current version, you can uninstall and reinstall jiraone or you can do python3 -m pip install --upgrade jiraone
-
@James Anderson you know what, I just did an update to v0.7.4 which comes with a fix to this. Try it out and let me know if it works for you.
-
Hey @James Anderson That should be used on line 1586 of the actual reporting.py module code. I'm supposed to provide an updated version of this for a while now but I have got a few other updates to the issue_export() and other methods which I would like to bring out at once rather than in batches. The concept here is that…
-
You want to review your permission to modify the reporter by checking what's your project configuration. However, it would have been much more apparent to show what error you got since it is a problem
-
Try using another browser. If it is the same result, you probably want to check in the browser's development console the type of error shown when you attempt to download and it fails. That would give you a clear picture of what's causing the failure
-
There's this guide on how you can do that or use an addon from the Atlassian Marketplace.
-
Looking at your code, the only place you did concatenation is here print(issue["key"] + " | " + issue["fields"]["summary"]) So probably, the summary field is coming up with the none value. Also, change query["startAt"] += 100 since you're using maxResults 100. However, if your request is to fetch all the issues from your…
-
Hey @Kirill so I don't forget this ask, please can you kindly create it as a request here
-
I think I get what you mean, so the function doesn't have a "from" or "range" time point, probably something I can add as an improvement later on.
-
The error states that JSON couldn't parse a None value. This means that the response received wasn't JSON serializable content, which most probably you received an empty string or content. Probably, you should reduce maxResults to 100 in the query variable, so it can match up your pagination rows as you traverse through…
-
What happened to simply export the tickets to a flattened file structure which you can use? To be exact use the advanced issue search of Jira to export the issues.
-
I think OAuth 2.0 might be too much of a step if you simply just wanted to create users. A simple script using your direct instance URL should suffice. An example is shown on the API docs in different languages. https://your-domain.atlassian.net/rest/api/3/user The API URL can be in the above form, then you can…
-
If you're using a free instance then you might not be entitled to support. You most probably would need to figure out what the problems might be or hope that the export finally works. The latter being optimistic.
-
You can't unlock a locked custom field on Jira cloud. There's actually no need for you to do so.
-
You could use API by creating a simple script that can help you export the data you need in a single file. Check out this article which shows you how you can do such via API.
-
Hey, @Ravneet Narula please open an issue here so I can follow up from there.
-
Nice, just add the condition # for the last 1 year from your current time dates = "1 year ago" # or referring to the last 3 years from your current time dates = "3 years ago" Use the by_date argument and that should do it. Please be careful when using this function as it will delete all attachments based on the action set.
-
Okay, now we know that works. Let's try the function again from jiraone import LOGIN, delete_attachments import json config = json.load(open('config.json')) LOGIN.api = False LOGIN(**config) jql = {"jql": "project = ABC ORDER BY Rank DESC"} # ensure that the above project is accessible by you. dates = "14 hours ago"…
-
Okay, let's take a step back here and see if everything with your actual login is true. Use the below script from jiraone import LOGIN, endpoint import json config = json.load(open('config.json')) LOGIN.api = False LOGIN(**config) output = LOGIN.get(endpoint.myself()) print("Connection:", output.status_code, output.reason)…
-
Hey @Kirill Add this line LOGIN.api = False to your script. from jiraone import LOGIN, delete_attachments import json config = json.load(open('config.json')) LOGIN.api = False LOGIN(**config) Then attempt your connection again.
-
Hey @Kirill The error shows that you're not authenticated. This means probably the way you've connected might not be valid. Are you connecting to a Jira cloud or Jira Server/DC?
-
Try running the script from your command-line tool for python3. It looks like it's calling another object and not the one in context.
-
Via API it is possible. First, you need to know the number of active users you have on the instance then you need to run across each user who has access to browse a particular project. Do that continuously until you exhaust the list of users then collect those data to create a CSV file of users in a project. So a…
-
I'm not yet convinced that you are being authenticated based on the error shared, it shows that the failure occurs because the status_code is greater than 300. How about starting from the beginning all over? A simple auth method just to confirm what you get # previous statements or declarations LOGIN.api = False LOGIN =…
-
Hmm, well I don't think you're being authenticated here with that error. Since you're on DC, you can generate a PAT for authentication. It's a bit different from the usual login mechanism. Generate your PAT and use the below. from jiraone import LOGIN, endpointurl = "https://yourserver.datacenter.com"token =…
-
Hey @Ravneet Narula it seems that the authentication is failing. For starters, are you connecting to a Jira cloud, Jira Server or DC? If it's the latter, then you need to add the below prior to the login initialization. LOGIN.api = False LOGIN(username, password, jira_url) Try that and see if that works for you.