The new manager interface allows you to set conditions on repeating jobs.
What qualifies an item with the "nearby" trait in the conditions?
It should be in a stockpile, or 20 tiles of the initial position. 20 tiles from the workshop for example
.
I think you should be able to access it too, if it have no way to access the stockpile or workshop it will not be available as nearby.
Edit: I was trying to find a source, and remember to see it in the wiki http://dwarffortresswiki.org but the best thing I found is:
Hope this helps.