title: JIRA JQL: Get all tasks due on, or before, the closest future Wednesday
body: <p>How do I create a JQL query, for a JIRA Agile swimlane, that displays all tasks due on the closest Wednesday in the future. For example, today is Monday and I want to see all tasks due on Wednesday (in two days). If today is Thursday, I want to see all tasks due on Wednesday next week.</p>
  
  <p>One solution I have found it to use the following query, but it forces the due date to always be set on a Wednesday:</p>
  
  <pre><code>duedate &lt;= 6d
  </code></pre>
  
  <p>I have also tried something with <code>endOfWeek</code>, but is only works in my Monday example and not in my Thursday example.</p>
  
  <pre><code>duedate &lt;= endOfWeek(-3d)
  </code></pre>