Dear all,
we use Jira Server - v8.20.9.
I was tasked with a problem that seams straight forward but sadly is not.
The goal is to take from a Jira Issue the assignee and check against a link provided in a field called Environment if the user has read access or not by using Automation.
So far I have encountered the following challenges:
All help is welcomed :)
Cheers,
Nikola
Posting some thoughts after your ping from the other thread...Note I am using Jira Cloud, not Data Center/Server, so please verify my suggestions in your environment.
Unfortunately, I do not believe the feature to help looping is supported with Data Center/Server yet: advanced branching on smart values.
So a couple of work-arounds would be to use multiple rules (one per environment) or one larger rule with an if/else structure. Both have pros/cons, and the larger rule make not work for you as (I believe) automation rules can have a maximum of 60 components.
Kind regards,
Bill
Hi Bill, this is exactly what I did, but unfortunately I had to hardcode the number of the environments:
Sadly if I do it this way and need to have 5 or more environment the logic will be extremly long and hard to be understood.
I also heard that there is a limit of 50 elements per automation rule, so I am not even sure I can make it up to 5.
Cheers,
Nikola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even though it will be a maintenance problem, you may want to consider multiple rules...where each one handles one-and-only-one environment. Also consider working with your site admin to contact Atlassian Support to learn if they have other suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Thanks Bill.
I figured out there is a third option: Short Urls.
When I try to directly send GET to the Short link I get back 403 Error.
Can you suggest a way to get a short url and somehow understand the real url behind it?
Thanks :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, I cannot; I have not tried that with an automation rule yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in case someone comes here I have managed to do all above with one exception: creating a loop to check dynamically the environments. Right now I have set a limit of 3 and the logic is build on that assumption.
Cheers,
Nikola
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.