Is there any way to Directely connect to Jira Database instead of API's if so How we do that?
you can connect directly to the database with some plugin that offer the option, in this case, you don't really needs Database credential to connect, but still needs JIRA admin access to use those feature. As Nic asked, it would be important to tell us exactly what you are trying to achieve, cause you might not need it.
I'm trying to get worklogs for all the issues using rest api "/rest/api/2/issue/${issue.id}/worklog".
After few hits api server is going idle, there is no response from the server.
Why am i unable to get worklogs for the all issues in one go?
Sometimes, I'm getting worklogs for 5 to 10 issues only, later the server is going idle.
Here is my code
worklogs = []
//looping through issues to get worklog of a particular issue
for (issue of issues) {
let worklogData = await axios(`/rest/api/2/issue/${issue.id}/worklog`, requestObj)
for (worklog of worklogData.data.worklogs) {
console.log('worklog');
worklogs.push(worklog)
}
}
This is why I thought of connecting directly to the jira database and get the data with out using apis
Kindly help me with this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which script are you using ? is it groovy[scriptrunner] ? or something else ?
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.
If you are on server, then yes, but don't do it.
The Jira database is a data store. It is not designed for reporting, even the most simple question like "show me an issue" can result in queries needing hundreds of joins, and it absolutely cannot be updated by systems outside Jira.
So, don't. Please use the APIs
What are you trying to do though?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm trying to get worklogs for all the issues using rest api "/rest/api/2/issue/${issue.id}/worklog".
After few hits api server is going idle, there is no response from the server.
Why am i unable to get worklogs for the all issues in one go?
Sometimes, I'm getting worklogs for 5 to 10 issues only, later the server is going idle.
Here is my code
worklogs = []
//looping through issues to get worklog of a particular issue
for (issue of issues) {
let worklogData = await axios(`/rest/api/2/issue/${issue.id}/worklog`, requestObj)
for (worklog of worklogData.data.worklogs) {
console.log('worklog');
worklogs.push(worklog)
}
}
This is why I thought of connecting directly to the jira database and get the data with out using apis
Kindly help me with this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.