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
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:
Kind regards,
Bill
Hi @Bill Sheboy
Thanks for the reply. Please find the below details.
It's a company managed projects.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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.
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.