I need to copy custom field from parent when subs move between them in one project.

Виктория
Contributor
December 23, 2022

I need to copy custom field from parent when subs move between them in one project.

 

I made  automation rule change issue field value when issue moves?

i use automation rules, and choose trigger "when issue moves"

but when i move issues by more-> move or by bulk -> move 

between story 

the rule don`t recognized it.

Somehow JIRA can't "catch" change of the parent issue for sub-tasks.

any possibility to make listener in scriptrunner?

1 answer

0 votes
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 23, 2022

Hi @Виктория 

Can I clarify the logic in this rule?

  • Are the "Subs" Sub-tasks (i.e children of a Story), or children of an Epic, or custom hierarchical level?
  • What are the other parameters of the rule? What information needs to move? What type of custom field is it? Etc

Ste

Виктория
Contributor
December 26, 2022

@Ste Wright 
Sub-tasks are children of a Story

text custom field (include some short numbers of letters and numbers). every story has its own value. when subs move to different story it should copy value of its new story

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2022

Hi @Виктория 

Depends on which trigger you're using.

This worked for me:

  • Trigger: Issue Updated
  • Condition: Issue Fields Condition:
    • Field = Issue Type
    • Condition = equals
    • Value = Sub-task
  • Action: Edit Issue
    • Field = <<Field Here>>
    • Action = COPY - Parent Issue

^ You do need to use the "Issue Updated" trigger I find, even though changing a parent is a move. "Move Issue" only works for issues moving between Projects I believe.

Ste

Виктория
Contributor
December 27, 2022

@Ste Wright 
exactly.
becuase of it (moving between Projects ) I find a way to make it work through scriptrunner

Виктория
Contributor
December 27, 2022

@Ste Wright 
how can i make it more specific? I don`t want this run run every single step. any idea?

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 27, 2022

Hi @Виктория 

Not that I know of - so it will execute on every Issue update.

It certainly could be possible with Scriptrunner if this is a preferred alternative - but I'm not sure on the right syntax to make that work I'm afraid!

Ste

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events