Is it possible that duodenal ulcer (diagnosed with an endoscopy) could trigger gallbladder dyskinesia (diagnosed with a HIDA scan).
Both a duodenal ulcer and gallbladder dyskinesia can result from stress.
Duodenal ulcer can, rarely, affect the opening of the common bile duct (sphincter of Oddi) into the duodenum and cause "sphincter of Oddi dysfunction" (PubMed), which is one type of "biliary dyskinesia."
NOTE: It is important to obtain a written medical diagnosis to know which exact type of gallbladder or biliary dyskinesia one has, because different types have different causes and treatments.
Since the treatment for duodenal ulcer is better known and, in general, more succesful than for dyskinesia, it seems logical that one should try to treat the ulcer first.