Rule attributes:
Desired outcome: Prompt the user to select Sprint from the board's sprints.
Considerations:
Challenge: The rule allows me to prompt the user for these 5 types of raw input but not existing fields in the sprint board:
Hi @Ian McLarney ,
if I understand you correctly, all the details aside, you wish to incorporate a user prompt as part of an automation rule. If this is correct, unfortunately, it is not possible. There is no concept of prompting a user during an automation rule. Maybe there is a different approach? I wonder if it's possible given that this is a manually, executed rule, simply use a transition and require the necessary input fields?
Yes, and...to Jack's answers:
Other customers have suggested making more information available to populate the user inputs for the manual trigger, such as described here: https://jira.atlassian.com/browse/AUTO-744 You may watch or vote for that suggestion to see progress.
However for your scenario, the input would need to be loaded from a REST API function call to grab any open sprints for the project. That seems beyond the scope of that original suggestion and so you may want to add to it (or create your own suggestion).
Back to your current need, you describe triggering this rule and creating an issue, populating the sprint based on a user input. Let's think about some work-arounds for now:
How many sprints, in advance, does the team create?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Jack, thanks for reaching out.
I think it is possible. My rule already prompts the user for input (a number), which it uses to set a field in the resulting issue.
Here are some Jira docs that describe this feature. Also, I've added a screenshot of my view when I configure the rule's trigger event.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well!!! Lesson learned!!!
I have never seen this previously. I am now going to need to go dig in and understand how that works. More specifically can it reference existing custom fields or simply creating some form on demand? How/where is this data placed on the issue. From what you have stated here and what I observe initially is that it is the latter. Which makes sense actually. Though maybe not desirable. I am going to play around with it a bit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ahhhhh, ok so this is definitely newish. I was getting stumped as I could not see where this information would be displayed. It appears, in fact, that it is not. Rather, what they have done is provided a means of incorporating variables with these fields such that you can use those variables within the context of the rule. So you should be able to achieve your goal, simply by referencing the variable that is created to fill in the desired custom field. At least in theory. In rereading your original post I see that you want to have them fill in the sprint. However, the problem with this in the context of the prompt feature is that the user could enter invalid information that would not align with your sprint naming conventions. In any case, it's something you'll need to play around with a bit.
let me know if this makes sense and let me know if I can possibly assist further. Again, this is all new to me as well. So it becomes a trial and error thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This makes sense. I think it is error-prone though. In another Community post, a user recommended a regular expression to parse user input. Since sprints are ephemeral, and their names are creative, I don't think this is a viable solution.
I described the desired outcome in my first message. I'd really like to be able to insert any of the Project's fields into the user input form as if it were a create issue screen. In this case, I want to insert the Sprint field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Understand but given that isn't possible using the Automation Prompt it might be good to seek a different approach. You could also consider using an addon like Scriptrunner which might work for your desired implementation.
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.