It's there a way to archived Jira Issue and worklog - jira

i try to find a way to archive project, issue and worklogs from jira to another database to increase performance.
It's someone already write a tools or have some sample of code to use to execute this goal ?
I think pass by the api will be to much expensive in ressource, so maybe i would like to pass by the database
It's there a way to transfert all old "items" who was not modified past a year ?
thanks

There is a tool I made for my needs which basically allows to convert Jira project to html website - maybe it will be useful for you: https://gitlab.com/kaszaq/jiratomkdocs/

Related

Custom Report Printing in Oracle Apex

What is the best way to create a Custom Report Template to print in Oracle Apex ? I saw some posts that've already been answered, but since they were Apex 5.1, I was wondering if these were still up to date, or if there are easier way no (I am using Apex v21.1). Also, the "Printing" attribute in the Reports does not give me the possiblities to do these specific things :
I would like the users to print an Interactive Report, which will display the logo of the company, the export date, and the data obviously. Is it possible to set custom margin so the list take more space on the page, and to set a custom size for the column, in case I have a column with a long text in it ?
Thanks in advance,
Thomas
Welcome to one of the weakest points of Oracle APEX, printing.
Honestly, the best option is Apex Office Print(AOP), but they are a paid plugin.
They enable lots of different printing, quite easy to grasp, and I am quite satisfied with them.
Other options I have seen are:
Make an excel sheet from within the database and you can generate that dynamically(you can also expand fields, colour them, probably can also put an image in there but I havent tried that).
I once decided to torture myself and I tried printing through HTML, as in I created an HTML document with the data I wanted(I made an invoice), but that has many problems, chief among them being page breaks.
Another option that was recommended to me, but that I have not yet tried was setting up an Apache FOP, having the Oracle database generate an XML, send it there and get back a nice looking pdf(http://www.apex-reports.com/videos.html).
I hope you get something working, and if you try this Apache FOP approach please let me know how it goes.

Is there a programmatic way to gather JIRA search term data for analysis?

I would like to analyze the search terms submitted by our JIRA users so we can formalize best practices for creating subjects and descriptions.
I'd like to avoid having to pull the search terms out of log files, where I believe they live if the right log levels are set.
I am familiar with jira-python and server-side JIRA customization, but this one's stumping me.
Is there a programmatic way to generate a list of the search terms submitted to JIRA? (Client-side/API is ideal, but server-side is okay too.)
Appreciate any advice folks can share, pointers to references, and so forth!
There is no API for this, but you can get this information from the webserver logs or by looking at saved_searches directly in the database. Clearly these would be only the saved filters, not all queries performed.
What about catching everything that is submitted to search field (client-side) and log it on server side (POST to servlet).

Jira: how to find all data associated with one issue?

I need to move all data for one ticket from prod to test.
Is it possible to construct a query that pulls all data related to an issues provided?
Anyone every tried it? Is it even possible?
Thanks,
Easy with the REST API:
https://<jira-server>/rest/api/2/issue/<ISSUE-ID>

Jira to know how many poeple have visited an issue

I want to know how many people have visited a particular isssue in order to know its popularity( I can't trust on number of watchers of the issue) .Is there any way (JiraDB or anything) by which i can know how many people(just the count) have visited any particular issue.
The question can be modified like this : Top 10 mostly visited issues in a week or so.
Seb's earlier answer provides a possible solution for JIRA Cloud. I am not aware of any off-the-shelf product for behind-the-firewall installations of JIRA, and I do not believe that views are tracked anywhere in the JIRA database.
For behind-the-firewall instances, you could certainly write a script to parse the JIRA access logs (stored in $JIRA_HOME/logs/access_log*) to count issue accesses that way.
The JIRA access logs are stored in a format that is similar to the Apache access log format, so you just need to parse out accesses to individual issues by looking for URLs of the format "http://MYJIRA/browse/ABC-123".
Out of the box this is not possible. Jira does not log view counts for single issues.
You could have a look if there is any plugin for this at https://marketplace.atlassian.com/search?application=jira
E.g. https://marketplace.atlassian.com/plugins/communardo.connect.usage.statistic.addon looks like it could fit your requirements, but I personally have never heard of it.

Resolved by field in JIRA

I need to search records in JIRA by using jira key. I am able to search issues but I have to do one more task that is to find out resolved by and resolved date. I had did lots of goggling but did not find content which satisfied me.
I really appreciate to help me to solve out this problem.
Thanks,
You could do this with a calculated field using Script Runner to extract the information from the Issue History tab. Not sure how good the search is using that approach. Alternatively you can use the REST API and a script to scan issues, but that's probably too slow.
Finally I am able to solve out this problem by traversing history data. I used json call to pick history data on basis of jira key then I converted that history data into typed history collection and started looking for Resolved token. When I got Resolved token in history then I picked the assigned name. By this way I am able to solve out this problem.
Thanks for your support.

Resources