Where does jira store the last accessed dashboard

I wan't to reset the users to default to a dashboard, instead of loading the dashboard what they last accessed.

I see tis as an option to reduce unnecessary load on the JIRA server .

2 answers

1 accepted

This widget could not be displayed.

Hello,

JIRA stores that information into the following table userhistoryitem.

+------------+---------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+------------+---------------+------+-----+---------+-------+

| ID | decimal(18,0) | NO | PRI | NULL | |

| entitytype | varchar(10) | YES | MUL | NULL | |

| entityid | varchar(60) | YES | | NULL | |

| USERNAME | varchar(255) | YES | | NULL | |

| lastviewed | decimal(18,0) | YES | | NULL | |

| data | longtext | YES | | NULL | |

+------------+---------------+------+-----+---------+-------+

There's a specific entitytype "Dashboard" and the entityid is the id of the related dashboard.
Hope this helps,
Fabio
This widget could not be displayed.

Thanks for the help !!

Query for getting the list of last accessed dashboards of all the users

select u.entityid ,u. username from userhistoryitem u where u.entitytype = 'Dashboard' group by u.username, u.lastviewed,entityid having u.lastviewed = max(u.lastviewed)

get the actual dashboard name form portalpage table

select * from portalpage where id = <u.entityid>

well done. Please, mak my answer as accepted.

Regards,

Fabio

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

133 views 0 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you