I have a custom field which is of type Checkbox. This custom field is being updated at multiple stages. Whenever this field values are updated ONLY added values related sub-tasks should be created.
For example, I have a workflow having statuses Open, In Progress, Development, Testing, Closed
Whenever issue transitions from Open to In Progress or In Progress to Development and so on, Department Customfield gets updated (new values will be checked on every transition).
A relevant Sub-Task(s) should be created Only for those newly added values.
The solution to this problem:
1. Configure the Trigger (in my case field value changed or Issue Transition)
2. New Condition: if/else block
3. Set condition:
First value: {{changelog.Sub-department.fromString.contains("Beta")}}|{{changelog.Sub-department.toString.contains("Beta")}}
Condition: Equals
Second value: false|true
4. Action: Create Sub-tasks
Please contact the Automation team, if you guys more clarification. They are simply awesome :)
Hi Pushpkant,
Developer from Automation here.
We have the individual actions/conditions to do most of what you want, but if you intend on using a multi checkbox then unfortunately we can't yet iterate/loop over the values to be able to create individual sub-tasks for each added item.
Here is a link to our public improvement backlog to iterate over smart value fields here: https://codebarrel.atlassian.net/browse/AUT-81 (You may need to open this in an incognito window, or log out of Jira Service Desk).
Your use-case is possible if you use a single checkbox since then then the field value changed will only contain one value, but that may not align with your requirement if you want to add items as you go along.
Here's an example that should work with a single checkbox:
If you have anymore questions feel free to contact our support here: https://automationforjira.com/contact-us
Cheers,
Yvan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Yvan Martin - It seems there are some updates from the Atlassian side, which now helps us achieving this solution. One of your colleagues helped me in achieving the solution. I have posted the solution in the response to @Elena Swaddipong comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah I see now, that should do it.
I didn't think to use the smart value contains() on the change log.
Anyway nice find, and glad to hear you now have a way to achieve this.
Cheers,
Yvan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just did this!
Create an 'Automation' when a field value changes
Then add a 'If block' with your conditions
Then add new action (Edit Issue) : here you update the Department
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Elena,
I had already tried this but this doesn't solve my problem. What I want is Subtasks should be created only for the changes/newly added values.
For community reference, here is the solution. (Note: Automation for Jira guys helped me in achieving this solution)
First value: {{changelog.Sub-department.fromString.contains("Beta")}}|{{changelog.Sub-department.toString.contains("Beta")}}
Condition: Equals
Second value: false|true
This solution works absolutely correct.
Thanks,
Pushpkant Garg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pushpkant this is what I did and worked for me:
In order to avoid creating a ticket repeatedly - i tagged the task and before creating a new one check whether it existed...
Seems that you are set but just in case.
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.