I have a custom "Field A" that needs to be populated with the date/time when another custom "Field B" was set to "Yes".
I need to create a script that:
This is what I have so far:
def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser.class)
def searchProvider = ComponentAccessor.getComponent(SearchProvider.class)
def issueManager = ComponentAccessor.getIssueManager()
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def query = jqlQueryParser.parseQuery("myJQL")
def results = searchProvider.search(query, user, PagerFilter.getUnlimitedFilter())
//code to get date/time when "Field B" was set to "Yes"
//code to add the date/time to "Field A"
it depends on your needs, for example if I need to record the first date that the field changed:
We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs