This custom field type produces duplicate values consistently. Any idea why this is happening?
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.link.IssueLinkManager
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.issue.CustomFieldManager
import com.atlassian.jira.user.ApplicationUser
import com.atlassian.jira.issue.link.IssueLink
MutableIssue issue = ComponentAccessor.getIssueManager().getIssueObject("issueKey") as MutableIssue
def cfManager = ComponentAccessor.getCustomFieldManager()
def issueLinkManager = ComponentAccessor.getIssueLinkManager()
def jiraIssueList = cfManager.getCustomFieldObject('customfield_14104')
def jiraIssueListValue = issue.getCustomFieldValue(jiraIssueList)
//def inwardLinks = issueLinkManager.getInwardLinks(issue.id)
//ApplicationUser user = ComponentAccessor.jiraAuthenticationContext.getLoggedInUser()
//IssueLink issueLink = ComponentAccessor.getComponent(com.atlassian.jira.issue.link.IssueLink)
//log.info("inwardLinks: "+inwardLinks)
//log.info("inwardLinks Type: "+inwardLinks.class)
log.info("issue list: "+jiraIssueListValue)
What do you mean by "produces duplicate values"?
What are you getting and what were you expecting?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where are you running the script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Script Console. The results are also the same when I use them in the Listener. The listener is where I'm originally using the script. If you want to reproduce the steps you can.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's something odd going on here - the server I've just pasted your code into only gives one line in the log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I submitted a request to Adaptavist, so hopefully soon someone will pick up the ticket and we can get this resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm in a different team, but yes, poking the product team for support was going to be my next suggestion.
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.