Random requirement from a customer.
Imagine you have a box with a unique ID as an object, and books which all have unique IDs as objects. You then have 3 books in that box which are all linked through the attributes associations.
Can a field on the box object be set up to count how many books have been linked to that box?
Thanks
Hi Tim,
That is possible. The approach however would be different depending on how the link is made. If the box has an attribute books, which contains the book objects, you could easily make an automation rule that looks like this:
object having inboundReferences(objecttype = "Box" AND key = {{object.key}})
More on smart values:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/
For the correct AQL you might want to use Reference Functions:
https://support.atlassian.com/assets/docs/use-assets-query-language-aql/#Reference-functions
Jeroen
Just be aware about your automation rule limits. If you have a lot of updates on these "boxes" you might want to implement this as a Scheduled rule with a "lookupObjects" action rather than have it trigger on each object update.
Other than that, what @Jeroen Poismans says :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i really love the answer, but we are on cloud so i dont think automation is an option. is that right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, why do you think you would not be able to use automation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When i go into the schema settings i dont have an automation option.
I didnt think automation was available on the cloud version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On Cloud there is no longer a separate automation for Assets and Jira they are rolled in to one automation engine.
If you go to "Global Automation" you can use the actions/triggers/... for Objects (which is Assets)
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.
Depends a bit on what you call "admin".
The quickest would be to go to:
https://[yoursitename].atlassian.net/jira/settings/automation
or to open the command pallet (Ctrl+K) and type "global automation"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, so i don't have access to that.
That's fine, i will get that arranged.
Really appreciate your support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.