I have the URL set up with the correct filter so clicking on the link goes to the other Dashboard with the field value as a filter.
The issue is that if I am viewing the original dashboard where the custom field is shown and that dashboard has a timerange of now to -7d, when clicking the link the other dashboard loads with the default timerange of now to -15m.
I could add the time in the URL but then I would have to define a static time range, would it not be possible using painless to read the current timerange?