Linked Issues updates an issue field with the value from each of the linked issues.

Issue #206 resolved
D created an issue

I have a post function that checks for link issue(s) and updates a field in the current issue. When there is only one linked issue then the value in the issue field is correct. eg. Low.

If however there is more than one link that meets the condition then the value from each of the linked issues appears in the field. eg. Low, Medium

The attached print screen shows the original code and a possible fix. Is this the correct approach or is there a better way?

JIRA version 6.4.10

Comments (4)

  1. Fidel Castro Armario repo owner

    You can do it with a single post-function using "Copy a parsed text to a field" with the following configuration:

    conf-0.png

    Text to be parsed in advanced mode is:

    first(fieldValue(%{nnnnn}, filterByStatus(filterByIssueType(linkedIssues("is duplicated by, duplicates, is cloned by, clones, is blocked by, blocks, relates to"), "Task"), "Creating Change Control"))) 
    

    Replacing nnnnn with the corresponding field code for "Risk Level" in your JIRA instance.

  2. Log in to comment