Is there anything in groovy scripting or other ways to create a validator (or condition) based upon whether or not there is the development tools link?
I know through triggers I can transition issues based upon an event from fisheye.
What I am looking to do is if there is any commits tied to an issue block it from being closed by any other resolution than fixed. So < there is a code commit tied to the project > && cfValues['Dev Resolution'].toString() != 'Fixed' then kick off the validator.
Was looking for an similar requirement - having open pull requests.
I Have not found anything on how to access the Development tools in Scriptrunner, but
I ended up executing JQL from within the Scriptrunner Script.
With this you can filter on the following depending on which software you use:
def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser)
def searchProvider = ComponentAccessor.getComponent(SearchProvider)
// edit this query to suit#
def query = jqlQueryParser.parseQuery("issuekey = " + issue.key + " AND development[commits].all > 0")
def results = searchProvider.search(query, currentUser, PagerFilter.getUnlimitedFilter())
return results.total == 1
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events