Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need support with automation rule

Prathap DL September 9, 2025

I need help building a Jira Cloud automation rule.
• I have two issue types: Task and Instance. (Both issue types are from different projects)
• Both have a multi-select field called "Subsystem".
• Linking rules in our project are:
• Task → Instance uses link type has defect.
• Instance → Task uses link type is a defect of.

Requirement:
Whenever a Task and an Instance are linked, the value of Subsystem from the Task should always overwrite the Subsystem in the Instance.
• This should work no matter which side the user starts from (Task or Instance).
• Even if the user mistakenly uses the wrong link type (reverse the link type), the rule should still ensure Subsystem is always copied from Task → Instance (never the other way).

Note: When user uses proper link type then subsystem value from instance is updating with the value from task issue type.

When user reverse the link type then value from task is updating with a value of instance which is not correct.

Thanks,

We are using Jira cloud

 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2025

Hi @Prathap DL 

What have you tried thus far to solve this?

If you have a rule that is not working as expected, please note context is important for the community to help.  To provide context, please post:

  • what types of projects are you using: company managed, team managed, JPD, etc.
  • an image of your complete rule, in a single image for continuity
  • images of any relevant trigger, actions, conditions, and branches
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected, and why you believe that to be the casej

 

Kind regards,
Bill

Prathap DL September 9, 2025

Hi @Bill Sheboy 

Thanks for the reply. Please find the below details.

It's a company managed projects.

Rule details.pngAudit log1-Right.pngAudit log2-wrong.png

With a above rule, I'm getting two kinds of output. In first audit log its editing the DEVHW ticket which is correct. But in the second audit log its editing the VVS ticket which is not correct.

When Both VVS (task issue type) and DEVHW (instance issue type) are linked correctly using below link types then we are getting correct output. (Custom field value from Task is updating in Instance ticket)

Task → Instance uses link type has defect. (correct linking)
Instance → Task uses link type is a defect of. (correct linking)

When user mistakenly reverse the linking type then custom field value from Instance is updating in Task, which should not happen. 

Task → Instance uses link type is a defect of. (Wrong linking)
Instance → Task uses link type has defect. (wrong linking)

In any linking case "Instance" ticket custom field value should be updated. not from task ticket.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2025

Thanks for that information, @Prathap DL and what you show is puzzling to me.

My understanding is when a link type is directional, rules with a Work Item Linked trigger always run in one single direction, regardless of on which work item the link was added.  Your rule appears to show something differently...or the link type used does not have a defined direction.  Regardless of that...

 

For your scenario, you want the update to be on the Instance work item, regardless of link direction used.  Thus, the rule could use an if / else block condition to test the trigger work item's type and then branch to the correct work item for the two cases:

  • branch to the destination work item and copy data from the trigger one, or
  • branch to the current (i.e., trigger work item) and copy data from the destination one

For that second case, you may need to use the Lookup Work Item action with JQL to get all the destination one's data for use in the edit.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events