You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi all,
in assets I have a scheme "configuration". The records in this scheme have an attribute "ID".
In an automation, I want to compare the Request Type ID of an issue, if it is contained in one of the records "ID" field in the "configuration" asset scheme.
If the issue request type ID matches to one of the items in "configuration" scheme, a custom field of the issue must be filled with a given value.
If the request type ID is not within the "configuration" asset scheme, the custom field must be filled with another given value.
Is it possible to query that?
Cheers, Alex
Hi @Alex Ziegltrum ,
your request consists of 2 parts:
attributeName = {{issue.Request Type.requestType.id}}
{{lookupObjects.size}} greater than 0
Hope this helps!
If you can't figure it out, let me know!
- Tessa
Hey @Tessa Tuteleers
thank you so much for your proposal. I don't know if it is a good approach, but meanwhile I managed the following:
I lookup in Assets where my values to compare with are:
With that I can compare the ID of my issue (it is something like 11.0 hence the round) wiht the values from Assets. If the value is found I edit a custom field.
If not, I check in an else-if block, if it is another value. If the value is found, I edit a custom field.
If none of the above matches, I edit the custom field in a last Else block to a certain value.
That works so far!
Right now, I am troubling with the trigger, that should go off, if there is a change of the request type or the request type ID.
When I do the change of the request type (not the issue type) in the ticket dialogue, the dialogue changes, but the ID does not change. I checked it by clicking on "configure". In the URL I still see the ID of the ticket as it was before, but in the ticket, the name of the request type has already changed.
Due to that, the trigger does not recognize the change and does not update the fields as it should.
Have you got an idea, what I should check? I am not excluding, that I still have a misunderstanding of request types and the ID that goes with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Ziegltrum ,
If you use the trigger "Field value change" for "Request type", it should trigger just fine (and it gets the new ID, I tested real quick).
If it doesn't work, screenshot you entire rule, so we can help debug :)
Specifically how you created the smart value that you are rounding up, all my request type ID's seem to be integers, so it's weird that you don't have that
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
indeed :D I used the trigger as you described it. I am having kind of a timing problem, as it looks to me.
The trigger recognizes the change of the "Request type" very well and superfast. Though the Request Type ID itself seems to be changed later on. Therefore in my automation, I see the new name of the Request Type, but the Request Type ID as it was before the change.
And when checking for changes on "Request Type ID" in the trigger rule, it does not recognize it at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, in that case, have your trigger on the change of the Request type, and then do a "re-fetch issue data" action before anything else.
If it doesn't work, screenshot our rule so we can debug :)
- Tessa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Tessa Tuteleers
with your help, I think I could fiddle out a solution for my use-case 🥳
First, I want to share some findings with you.
It seems, my "Request Type ID" custom field is configured as number, is it usually like that or how is it configured then?
As I used your suggestion from above {{issue.Request Type.requestType.Id}}, this gives me an integer-like value. I guess, you meant that initially in this thread, instead of a custom field "Request Type ID" of any kind?
Some automations fill and update that custom field, which explains the delay in the automation, which it is about in this thread.
The solution that works for our use-case looks as follows:
The trick is the first step to put the value from {{issue.Request Type.requestType.Id}} in the custom field "Request Type ID" and refetch data. With this I do not run into the timing problem. From then on, I can work as desired with the (integer?) value for the comparisons and updating the other custom field.
Thanks a lot @Tessa Tuteleers for your kind and patient support.
Cheers, Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex,
I'm not sure why you need the custom field "Request Type ID", as you don't need if for this to work, but if it is for some other requirement, great!
Glad it worked out!
- Tessa
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.