Hi,
How can I copy component field from story to linked issue story bug.
I have created a custom field Story Bug. I have story Test 1 that is part of module 1 component. Now when I try story bug, I want this story bug to have the same component which test 1 have.
While creating story bug, I will link the this story to my story bug so the component field should be copied automatically.
Let me know if this is possible.
I am not quite following your exact scenario...It seems you have an issue of one type (e.g. Story), and when creating another issue want to link that to the first issue and copy the Component field.
That should be possible with an automation rule.
Using automation rules requires learning and experimentation. I recommend trying to create the rule, and if you run into challenges the community can help.
To get you started on creating your rule, please refer to these documentation and example sources:
Kind regards,
Bill
@Bill Sheboy - I have worked with automation rules but I think I wasn't able to explain it to you properly. Here is the automation rule I have created.
Let me know if this is the right approach?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
While I'm creating this story bug and I'm linking it to story.
The story has already component field. I want that component field to be copied in the story bug I'm creating.
What I want is whatever the component field story has, linked issue should have the same component field.
I hope I have made it clear now.
@Bill Sheboy
@Nic Brough -Adaptavist-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you branch to the linked issues, you are editing those linked issues, and not the newly created one.
An alternative is to gather the linked issues using the Lookup Issues action with JQL, and then use their components to set the value:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for the message. Can you please explain it in terms of automation rules like the Screenshots.
Also, I am seeing the component name at the end but the thing is that I have multiple components and I cannot specify component name. I hope you understand.
Please help me out here and send me the screenshots of how this can be done. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is what I have done and to be honest I have no idea what have I done. I thought It would be simpler but it is much more complicated than I thought.
Please let me know the next steps because I need this badly and I have multiple number of components. @Bill Sheboy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I described earlier, using automation rules requires learning and experimentation.
We are all learning and so I encourage to take your time to understand how the rule works as you implement it. Perhaps pair with another team member to share knowledge and the work. That will help you both to maintain the rules in the future.
Next, you seem to now describe some urgency to complete this. If you regularly have such requests / needs I recommend learning more to do this in Jira yourself, or investigating hiring an experienced Jira admin to help your team.
I provided the exact steps for the rule, based on there is one linked issue to the Story and one component value. Let's adjust what I provided to help your changes.
The lookup issues with JQL is meant to return the data for the Story; that is the issue which is blocked by this new issue, Story Bug. Your JQL to find it can use the linkedIssues() function: https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#linkedissue
For your case, that would be to the trigger issue. This query will find any issues the trigger issue is blocking, and it would be used in the Lookup Issues JQL.
issue IN linkedIssues( {{triggerIssue.key}}, "blocks" )
Once those issues are available, the component value may be used directly to edit the trigger issue, Story Bug.
To use a smart value to edit an issue field, like components, try the following:
Please try those things in your rule, test it, and share the results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is how the automation rule looks like:
Even though I am getting the following message but I am able to achieve what I wanted.
Thank you so much! I cannot thank you enough. I have bothered you a lot but thank you for your patience. Kudos to you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Automation rules do not display such messages after they edit issue fields.
That message would only show if you manually create or edit an issue, setting the fields in a way that it no longer matches your board filter. That seems like an unrelated problem.
Back to your automation rule, what do you observe happening when it runs now?
Please post an image showing the audit log details with the rule execution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy - Here is the screenshot of the audit log
About the unrelated message that I'm seeing, what I can do so it is no longer shown. It doesn't affect my automation rule but everytime I create a story bug and linked it to the story ...it shows me this message then the story bug is shown on sprint board.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post images showing the component fields for the issues TP-131 (the source for the components) and TP-180 (the issue you are copying them to). The rule seems to indicate the copy worked.
And, please post an image of the edit issue action for the rule.
About that message and the issue showing up: you may want to investigate that further. For a linked issue, that would only show on the board if it was in the sprint. (Child issues like sub-tasks will show if their parent is in the sprint.)
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.
Those images seem to indicate the rule worked: the component values from TP-131 were copied to TP-180.
What is not working as you expected?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everything is working according to the expectation. I was just curious about the toast message that is unrelated to this.
Thank you so much for your patience and great help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome; I am glad to learn that helped you.
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.