Explanation of tables of redmine database model - database-schema

I looked at Redmine Database Model
http://www.redmine.org/projects/redmine/wiki/DatabaseModel
And didn't find explanation of any table.
I intuitively guess the purpose of the main tables such as "issues", "projects", "users", "trackes".
I checked redmine forum topic related to my question
http://www.redmine.org/boards/1/topics/19470
But there no information for me.
Could you please give me any explanation of next tables:
queries
enumerations
workflows
time_entries
repositories
changesets
changes
Thanks.

queries are user queries with filters, sorts and columns for issues atproject\issues tab - users with appropriate privilegies can save and modify own or common queries
enumetations - issue importances and other text enumerations that doesn't need special entities
workflows contains:
issue workflows (issue jumping through statuses - e.g. new -> resolved -> closed)
workflow rules (can jump from new to resolved, but can't from closed to new)
workflow permissions (developer can resolve issue, but only tester can close it)
time_entries - issues has link «Log time» where users can enter spent times for issue resolving (may by several times for one issue)
And sorry, don't know other tables :)

Related

Get Incident details such as assigned to, comments by the analyst,Incident ID etc using query in Logs

I am investigating incidents but I need to tie them with the SOC analyst who worked on it and what comments were added by them. I am not able to find these details in any table.
This will be helpful to pull out the metrics for the SOC team.
Where can I find this information?
Understandably, these are difficult to expose right now. They are located in the AzureActivity table (with the Azure Activity Data Connector enabled).
We will be making this much easier very soon with a new table specific to Incidents.
In the interim, here's a KQL snippet that you can use to start sifting through the results for Incidents in the AzureActivity table:
AzureActivity
| where _ResourceId has "Microsoft.SecurityInsights" and _ResourceId has "incidents"

Adding a Link to a work item breaks my query

We are trying to use VSTS work item management with as few modifications as possible. One of the requirements we have is that our QA department needs to be able to find out which PBIs and Bugs are ready for them to start working.
(we are using our own inherited process based on the built-in SCRUM template)
Our definition of "ready for QA" is that - for e.g. a PBI - all non-QA tasks are done.
I have created this board:
In this case we should be able to make a list (query) that would result in these PBI's and Bugs:
5101 Demo - Ready for QA
4970 Demo - Ready for QA
8542 Bug - Ready for QA
I have made a query that does that (I got help over here)
PROBLEM:
So until we actually started onboarding QA resources, everything was bliss.
However - we have found out that if we make a "link" to PBI's and Bugs they disappear from the result. We need our QA-resources to create a link from their Test cases to the PBI's and bugs and such the query I have does not work anymore.
But - I cannot ... for the love of God ... figure out how to modify my query to enable this. Any references break my query - even between a PBI and a Bug.
What do I do with this?
Problem walk-through:
Before adding references to either PBIs or Bugs the query looks like this:
The query returns two PBIs and one Bug.
Then I add a "Related" link from a Test case to the Bug:
The query now has this result:
Solution found:
The result of the query after the solution proposed by Marina is this:
Please add Work Item Type <> Test case in the linked work item clauses and group the existing clauses:

tiki wiki how to permanently hide a tracker plugin from a user once saved

I'm trying to implement a read confirmation in a number of wiki pages.
I'm trying to use trackers.
General Description:
Employees in our company are assigned to read a number of official procedures.
I'm trying to implement a process where:
Each employee is assigned procedures he needs to read according to his department (Group).
Each procedure is a wiki page
At the end of each procedure there will be a confirmation form in the following format.
Users that don't need to read this procedure won't see this form.
Users that confirmed reading the document will see a message like:
You've confirmed reading this procedure.
Administrators will be able to monitor who read what procedure.
Questions:
How do I hide the tracker plugin from users who don't belong to the department (Group)
How do I display a different message once the user confirmed the read
Thanks
There are different way to achieve this and it require a bit of thinking (trade-off from a method to another), but this is what I’ll do.
Have 2 groups (before approving - after approving)
Display the procedures using a plugin listExecute and having at the end the approving checkbox to have some actions (notification, group changes, etc).
Enclosing everything in a tracker and turn it into a multipage forms can also be the way.
Your case remind me other use case I worked on including Official Procedures reading including quick test (to check if the procedures were understood) and approving mechanism. Look at https://doc.tiki.org/PluginExercise ;)
Good luck
Bernard
https://www.facebook.com/bsfez
Another, possibly simpler (? ;) way to do that would be to use just plugins group and list, maybe like this:
{GROUP(groups="This Department")}
{LIST()}
{filter type="trackeritem"}
{filter field="tracker_id" content="42"}
{filter field="tracker_field_procedurePage" content="{{page}}"}
{filter field="tracker_field_userLogin" content="{{user}}"}
{OUTPUT()}~tc~Item found, so already done~/tc~You already did this bit{OUTPUT}
{ALTERNATE()}~tc~Nothing found, show the form~/tc~{tracker trackerId=42 etc...}{ALTERNATE}
{LIST}
{ELSE}
You don't need to fill in the form
{GROUP}
This is totally untested i'm afraid, and i'm not 100% sure you can use a plugin in the ALTERNATE section, but give it a go? If it doesn't work, try using {display format="wiki plugin" etc...} which might do the trick - good luck!

Crystal Reporting From AX Database

I am having an issue finding links within Crystal Reporting. I am trying to link 2 tables. However this seems to be a long task as I battle to find any links.
Is there a method that should be followed, as the most that have the same names to not link the tables correctly.
You should take a look on AX Data Dictionary Tables for the involved tables, then check the Relations node of the table. Any direct relation is usually on the child table. This of cause requires developer rights to the target AX system.
Remember to join on DataAreaId and PartitionId as well. Always check if any appropriate index exist.
Also the Reverse Engineering Tool may be of help.

Eclipse Birt Reports, Creating report from SQL database, (user key?)

I'm fairly new to using the Birt Report Designer and need to figure out how to generate a report from a SQLite database. I have suceeded in getting it to connect to the DB but am now unsure how to generate a report and the tutorials that I have found aren't of much help so far.
I have a template that was given to me by my employer that has a few fields, I'm wondering if these fieldnames (in the template) are supposed to match field names in the DB.
Also, when I go to Run->View Report-> As PDF I am unsure what I am supposed to enter for the field "User Key", does this correspond to a table name in the DB or something along these lines?
As of now, I have tried entering a table name but just a blank report is generated.
If anyone can point me to a good resource or help with this I would greatly appreciate it. Thanks
There are two books i could really advice:
BIRT - A Field Guide to Reporting
Integrating and Extending BIRT
and the Eclipse Help containing BIRT documentation.
I suppose the User Key could be report parameter (listed in Data Explorer window), which is passed to Data Set to select appropriate data. If I'm guessing right, check within a Data Set editor ("Parameters" tab and "Query" tab) where the User Key parameter goes in - probably to one of the table field in a WHERE clause. Parameters in a query are represented by question marks: SELECT * FROM fooTable WHERE barColumn = ?. Hope tracking this would lead to find out, what to enter to the parameter.
Additionally, ensure if your Data Set(s) is(are) connected correctly to your SQLite Data Source ("Data Source" tab in a Data Set editor).
Being as new as you are to BIRT, I would suggest building a couple of reports with the sample DB (Classic Models). There are many, many samples out there for you to use as a guide. Additionally, most tutorials will use the Classic Models data so you can follow right along. After you create a couple of practice reports (this should not take more than 30-45 minutes) the template you have been given will likely make A LOT more sense and allow you to make progress almost immediately.
If you are looking for a nice collection of tutorials and samples, be sure to check out Birt Exchange for Dev Share (samples) & tutorials.
As for the "User Key" this is almost certainly a report-level parameter used to filter the data set (as the previous answer points out).
Good Luck!