Hey :)
i want to search linked issues with the same custom field value like the parent issue.
If i return the issues i need, i want to fill a field with "new Date()"...
I don't know how to end the following script :D
Result type is my query...
Or the whole script is stupid.... pls help.
---------
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.search.SearchProvider
import com.atlassian.jira.jql.parser.JqlQueryParser
import com.atlassian.jira.web.bean.PagerFilter
def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser)
def searchProvider = ComponentAccessor.getComponent(SearchProvider)
def issueManager = ComponentAccessor.getIssueManager()
def issueTypeGroup = "(XX, YY)"
def fieldName = "Important-Number"
def linkeTypeName = "VIP"
def cFieldValue = issue.getAsString(fieldName)
if (cFieldValue == null) {
return
}
if (cFieldValue.size() == 0){
return
}
def query = jqlQueryParser.parseQuery("issuetype" + " in " + issueTypeGroup + " AND " + fieldName + " ~ " + cFieldValue)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.