youngmon/atlassian-qna huggingface dataset:
JIRA Automation: Create new version when a new Sprint is created
Asked by Emerson:

Hi everyone!

I'm trying to do automation that creates a new version with a sequential name (eg v1, v2, v3, etc...) every time I create a new sprint. One of the mandatory fields is the version name and I don't know exactly how to write it so that JIRA understands this. Help me, please!


Answers:
author: Mark Segall
body: Hi [@Emerson](/t5/user/viewprofilepage/user-id/5014754) and welcome to the community!

You may want to take a look at this one:

<https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-Creating-a-fix-Version-with-appropriate-name/qaq-p/1363691>

The trigger is based off of version released, but should flow similarly otherwise.

comments: author: Emerson
body: Hey [@Mark Segall](/t5/user/viewprofilepage/user-id/4666637) and thanks for the welcome!

Man, I'll tell you something. Worked wonderfully well!

Last question: for me to change and look like, for example, SPR_v1, just change the string inside the parentheses?

Thanks a lot! I was cracking my head here and now I'm happy!


author: Anja Eigner
body: Hi [@Emerson](/t5/user/viewprofilepage/user-id/5014754) ,

please could you share with me the solution? I'm looking exactly for this case and cannot find the smart value to place in the automation.

Thanks a bunch!

Anja


author: Emerson
body: Hi [@Anja Eigner](/t5/user/viewprofilepage/user-id/4730253) ,

I'm really really sorry. I didn't saw your message.

Ultimately I stopped using scrum boards. On the Kanban board it is simpler.

If you want to do the automation anyway, it looks like this:

**When: Version released**

**Then: Create version**   
Version name {{version.name.substringBeforeLast(".")}}.{{#=}}{{version.name.substringAfterLast(".")}}+1{{/}}

In "More options" I like to put the Start date  
{{now.jiraDate}}

P.S.: until now, for this to work, you need to create the first version manually.
Notifications for Status Changes
Asked by Tiffany Lazo-Cedre:

Is it possible to send automated reminder notifications (either email or slack) to a task assignee when a due date is approaching, if a task is on a certain status (e.g. not started)?


Answers:
author: Mark Segall
body: Hi [@Tiffany Lazo-Cedre](/t5/user/viewprofilepage/user-id/5013791) and welcome to the community!

Yes - You can do something like this:

![2022-08-22_15-38-16.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/212146i0446CBF094D47359/image-size/large?v=v2&px=999 "2022-08-22_15-38-16.jpg")

This rule will run daily looking for any issues where due date is coming up. I've added an optional step of using a label to determine if a reminder was already sent. You can omit that from the query and delete the edit issues step if you want the assignee to get nagged daily until they've closed the issue. Here's the query:

```
statusCategory != Done AND duedate <= startOfDay(7d) AND (labels is EMPTY or labels NOT IN (reminder_sent))
```


author: Olha Onofriichuk_SaaSJet
body: Hi, [@Tiffany Lazo-Cedre](/t5/user/viewprofilepage/user-id/5013791)

Yes, you can set it up. Let me help you with a piece of advice.  
If you want to send automated reminder notifications to a task assignee when a due date is approaching, if a task is on a certain status (e.g. not started), etc. You can try [SLA Time and Report for Jira](https://marketplace.atlassian.com/apps/1220741?utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Notifications-for-Status-Changes_20220823) add-on.

Here you need to define **when you'd like the notification to be sent** (for example, 1 day before the due date, or 30 hours after the task was in the "To Do" status, if the task was unassigned during some period of time, etc.). Just create a new SLA Configuration and choose an automated action (to **send a reminder notification**):

![notif2.png](https://community.atlassian.com/t5/image/serverpage/image-id/212269i9C5BAB31B7A6D725/image-size/large?v=v2&px=999 "notif2.png")

Or you can **set up changing the status of the Jira issue** if it wasn't completed before the certain time, or **changing the assignee or priority**:

![notif3.png](https://community.atlassian.com/t5/image/serverpage/image-id/212274i581D8CDCF02B3F17/image-size/large?v=v2&px=999 "notif3.png")  
Hope it helps.

And let me know if you need help with settings or you want to find out more how to work with it! This add-on was created by my team, so we will be glad to tell you more how to work with [SLA Time and Report for Jira](https://marketplace.atlassian.com/apps/1220741?utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Notifications-for-Status-Changes_20220823) add-on.

Have an amazing day!

Regards,  
Olha


Tags: notification
Lookup Issues not finding all child issues in Epic
Asked by Colleen Gotling:

I am using Lookup Issues in automation to count the number of child issues. For most of the Epics, this is working but I noticed that when we have a child issues that happens to belong to another project, it does not include it although it has the correct Epic name which I am using for the search.

Here is the query I use in my rule:

issuetype in (Bug, "Client Story", "Non-Quattro Bug", "Non-Quattro Story", Story, Task) AND "Epic Link" = "{{issue.Epic Name}}" and Status in("Warranty", "Done")

And here are the child issues it is finding.

![lookup issues.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/212110iAC27A373A6933E39/image-size/large?v=v2&px=999 "lookup issues.PNG")

And here is the same query in my filter with the child issues found.

![query results.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/212112iE22F6732FF11720C/image-size/large?v=v2&px=999 "query results.PNG")

Here is a screenshot of the Epic. As you can see, CS2-84 is a child issue of CS-126 so why wouldn't my automation recognize it?

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/212113iE6034A55100014E8/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Jack Brickey
body: hi [@Colleen Gotling](/t5/user/viewprofilepage/user-id/4643094) ,

I have not attempt this myself. The first thing that comes to mind is whether the automation is global or not? I would think that it would either have to be global or at least a multi project automation. Do you likely have already thought of this but wanted to throw it out there.

comments: author: Colleen Gotling
body: Thank you for replying but I think I found my issue. It is a global rule with multiple projects but the CS2 project I forgot to include. Now it works.
Create Auto Labeling rule
Asked by jared:

Hi,

Is there a way to search for specific keywords inside a ticket and automatically assign it a label or tag?

e.g. we have an automated access request system that pipes its data into JSM and has the same few keywords when it completes a ticket. We want a rule to search for those key words and assign it a label so we can create better reporting.


Answers:
author: Petter Gon?alves
body: Hello [@jared](/t5/user/viewprofilepage/user-id/5011636)

Thank you for reaching out.

You can use an automation rule to properly check the resolved issue against a JQL query, properly checking if the issue matches specific keywords on any text fields and adding the relevant labels. These would be the steps:

1. Navigate to your project \> Project settings \> Automation
2. Create the following automation rule, replacing the keyword1 and keyword2 with the relevant keywords you need:  
   ![Screen Shot 2022-08-19 at 6.45.29 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/211935i073F9105ABF729A2/image-dimensions/494x204?v=v2 "Screen Shot 2022-08-19 at 6.45.29 PM.png")

You can check the documentation below for more details about the JQL operator used in the Automation:

[JQL CONTAINS \~ Operator](https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/#Advancedsearchingoperatorsreference-CONTAINS-CONTAINS--)

Let us know if you have any questions.

comments: author: bmccoy
body: Hi!

Another option would be to use the issue field condition if the keyword search is simple e.g.

![Automation - Code Barrel JIRA 2022-08-23 09-17-30.png](https://community.atlassian.com/t5/image/serverpage/image-id/212150iBBE5F637518EE88F/image-size/large?v=v2&px=999 "Automation - Code Barrel JIRA 2022-08-23 09-17-30.png")

Or if you need something a bit more complex, you can use our regex option in the advanced condition![Automation - Code Barrel JIRA 2022-08-23 09-18-12.png](https://community.atlassian.com/t5/image/serverpage/image-id/212151i96C2D4931DDE23C7/image-size/large?v=v2&px=999 "Automation - Code Barrel JIRA 2022-08-23 09-18-12.png")

Both of these can run a bit faster than the JQL condition.

Cheers,  
Brydie
StatusCode 500 when validating web request to create confluence page from Jira ticket
Asked by Ben Greene:

Was following [this guide](https://community.atlassian.com/t5/Jira-articles/Automating-the-creation-of-a-Confluence-page-linked-to-a-Jira/ba-p/1760738) on creating automation that makes a Confluence page from a Jira ticket, but my web request gives me a "statusCode": 500 error when I validated it to check.

**I think it is likely to do with the formatting of my Custom Data**, but I was unable to access the old editor for Confluence to get a proper skeleton from.

**The full message:**

{  
"statusCode": 500,  
"message": "org.codehaus.jackson.JsonParseException: Unexpected character ('H' (code 72)): was expecting comma to separate OBJECT entries\\n at \[Source: com.atlassian.plugins.rest.common.limitrequest.jersey.LimitingRequestFilter$1@794c9cbb; line: 3, column: 18\]"  
}

**Also my Custom Data in case that helps:
(The values after 'issue.' are custom field names)**

{  
"type":"page",  
"title":"{{issue.Issue Title (Short description + Error text)}}",  
"space":{"key":"DOC"},  
"body":{  
"storage":{  
"value":"{{issue.Issue Reason + Screenshot(s)}} {{issue.Issue Solution + Screenshot(s)}}"}  
}  
}


Answers:
author: bmccoy
body: Hi!

To address the actual error: it looks like it might be a JSON encoding problem. Any of the strings from the issue will need .jsonEncode e.g. {{issue.myfield.jsonEncode}}

I'm not particularly familiar with the Confluence REST API though, so not sure exactly what you are going to need for the 'value' to work. That said, I think you will find it tricky to get the data onto the page nicely. The screenshots in particular will not carry across. We do expose different variations of the text fields for example {{issue.description.html}} and {{issue.description.text}} in case that helps.

I'm also going to pass this use case on to our team. We have recently released the "Create Confluence Page" action which allows you to create pages from Jira, however, it does not yet support your use case of filling in the content.

Cheers,  
Brydie

comments: author: Ben Greene
body: Hi [@bmccoy](/t5/user/viewprofilepage/user-id/502090)

Thanks for the response, I had a go adding that .jsonEncode but I still get errors:

![](https://i.gyazo.com/589ee3122490784254a91aa7259eb341.png)

I was indeed hoping your Create Confluence Page action would actually allow me to do what I needed, but as it is the action doesn't really let me do much of anything.

It would be great to be able to set the page contents via said action. Not being able to carry across screenshots is also frustrating.


Tags: confluence

jira
How to clone and keep sync of issues between projects
Asked by Raabe Tatiane Barbosa _DHL Supply Chain_:

Hey!  

I need to share issues betwwen projects. I could use the automation to clone the issue, but I'm not being able to keep it sync. I'd like that any changes made in one project is also reflected in the other one, like really sharing the same issue


Answers:
author: Mark Segall
body: Hi [@Raabe Tatiane Barbosa _DHL Supply Chain_](/t5/user/viewprofilepage/user-id/5010246) - It's not the cleanest, but you could do something like this:

* TRIGGER: Issue Updated
* BRANCH: linked issues (your link type)
  * ACTION: Edit Issue
    * Select all of the fields you wish to copy and set to copy from trigger issue


author: Matthias Gaiser _K15t_
body: [@Raabe Tatiane Barbosa _DHL Supply Chain_](/t5/user/viewprofilepage/user-id/5010246) I've seen that you've posted the same question [here](https://community.atlassian.com/t5/Automation-questions/How-to-make-a-clonned-issue-from-a-project-update-in-the-other/qaq-p/2109718?utm_campaign=subscription_search_answer&utm_content=topic&utm_medium=email&utm_source=atlcomm) as well.

I kindly ask you to not duplicate content so that the people answering questions here don't waste time when they answer a question which is already answered somewhere else.


author: Curt Holley
body: Hi [@Raabe Tatiane Barbosa _DHL Supply Chain_](/t5/user/viewprofilepage/user-id/5010246)

If sharing, is there any reason not to just use the one issue, but visualise it/them across both projects via a board with an appropriate filter query?  

Saves the complexity of duplication and automation, as well as ensuring a single source of truth.
way my automation is so slow?
Asked by Jianquan Zhang:

it will take long time to excute automation when issue status changed. due to lots of automations are running or due to machine load is high?


Answers:
author: Bill Sheboy
body: Hi [@Jianquan Zhang](/t5/user/viewprofilepage/user-id/4993188) -- Welcome to the Atlassian Community!

For a question like this, there are several things to check:

* What is the purpose and structure of your automation rule? Perhaps post an image of your complete rule to offer some context for the community to suggest ideas.
* What do you see in the details of the rule's audit log? If there rule has errors those may indicate what is happening.
* From the rule list, what do you observe under the Performance Insights (available from the ... menu at the top-right of the view)? It is possible your rule (or Jira site) has exceeded automation thresholds, and so the rule is being throttled for some reason.
* Sometimes there are issues with the Atlassian Cloud rule processing, which you can check on the status page here: <https://jira-software.status.atlassian.com/> That does not show any problems for the last several days.

Kind regards,  
Bill


author: Dan Tombs
body: Hi [@Jianquan Zhang](/t5/user/viewprofilepage/user-id/4993188)

Are you able to include a screenshot of your rule. This may help us understand why your rule is running slow. Can you also provide some understanding behind your rule.

Dan


Tags: cloud
Automation when field changed doesn't trigger if field updated by automation
Asked by Robert Marten:

I have an automation rule that triggers when a custom field is updated. If the custom field is updated by a person the automation runs as expected.

Some of our teams have scenarios where the same custom field gets set by an automation. When that happens, my automation to run when the field is updated does not get triggered.

Has anyone else run into this?


Answers:
author: Sam Harding
body: Hi [@Robert Marten](/t5/user/viewprofilepage/user-id/4183250)

To allow other automation rules to trigger your rule, you need to check a box on the 'Rule Details' page of your automation rule.

If you go to your rule details page, you will see a check box marked:

"Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule."

![Screen Shot 2022-08-16 at 10.40.56 am.png](https://community.atlassian.com/t5/image/serverpage/image-id/211167iDE83B90C5D789DC0/image-size/large?v=v2&px=999 "Screen Shot 2022-08-16 at 10.40.56 am.png")

Selecting this should fix your problem  

Cheers  
Sam

comments: author: Robert Marten
body: Brilliant, I had missed that checkbox entirely. Thank you!
?C?mo puedo hacer para que los usuarios puedan visualizar solo sus incidencias?
Asked by Lucas Gagliano:

En un tablero Kanban pude configurar un filtro autom?tico para que solo se muestren sus incidencias, pero al ingresar al apartado Incidencias pueden visualizar todas las incidencias creadas... hay alguna manera de desactivar la funci?n incidencias o de que manera puedo restringir la visualizaci?n de las mismas?


Answers:
author: edwin vasquez
body: Hola [@Lucas Gagliano](/t5/user/viewprofilepage/user-id/5002266) ,  

Quisiera aclarar un poco tu pregunta, quieres restringrir a que el usuario solamente pueda ver las incidencias que el mismo usuario creo? Otra pregunta, el usuario es cliente o usuario con licencia asignada?

comments: author: Lucas Gagliano
body: Hola [@edwin vasquez](/t5/user/viewprofilepage/user-id/3017728)

Quiero que un grupo de usuarios con un rol en especifico puedan visualizar solo las incidencias de las cuales estan asignados como responsable de ellas. Y por otro lado haya un grupo de usuarios que puedan ver todas las incidencias.  
Todos los usuarios son con licencia asignada.


Tags: report

security
Want to move status based on the Date Time picker field Data
Asked by lokesh:

Hello team,

I want to move the ticket from one status to another if it reaches the Date and Time given in the "Change Date and Time" field while creating the ticket.

#Jira Cloud

Regards,

Lokesh


Answers:
author: Tansu Akdeniz
body: Hi [@lokesh](/t5/user/viewprofilepage/user-id/5007653)

Welcome to the community.

Go to project settings -\> automation and add new rule. Use **Scheduled** trigger and provide a JQL (Ex; due (or your customer date field) \< now()). Then add an action (**Transition Issue**) and choose the destination step for automatic status change.

comments: author: lokesh
body: Hi [@Tansu Akdeniz](/t5/user/viewprofilepage/user-id/472390) ,

Thank you for the quick response!

For the Scheduled trigger, when do I run the rule? will there be any specific time frame? Because tickets gets created every day or even every hour.

For example:

Ticket 1 - My Date picker field data is 08/14/2022 12:30 PM while creating the ticket.

Ticket 2 - My Date picker field data is 08/14/2022 1:00 PM

Let's say, my issues (Ticket 1 \& Ticket 2) are at **To Do** status. When I reach the above time, these should move to **In Progress.**

**Automation Rule:**

**Trigger - Scheduled**

**Action - Issue Transition to In Progress.**

Do I need to run the rule for every 5 mins? 30 mins? 1 hour? or 1 Day?

Please suggest.

![Screenshot 2022-08-14 113629.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/210965i8CFA84E239668766/image-size/large?v=v2&px=999 "Screenshot 2022-08-14 113629.jpg")

Thank you!


author: Tansu Akdeniz
body: It is totally up to you.

ps: Unfortunately, there is no trigger that will instantly detect when the deadline ends. Therefore, you should configure scheduler on time basis.


author: lokesh
body: With the above JQL, I was not able to achieve even if I set the rule to run for every 10 mins.

My status is not getting changed.

Thank You!


author: Tansu Akdeniz
body: I assume that there are issues with due dates past. You can validate by clicking "Validate query":

![Ekran Resmi 2022-08-15 17.20.11.png](https://community.atlassian.com/t5/image/serverpage/image-id/211090iA43D942D0F590CA6/image-size/large?v=v2&px=999 "Ekran Resmi 2022-08-15 17.20.11.png")

Also please notice this feature "**Only include issues that have changed since the last time this rule executed**".

Can you check Audit Log of this rule?


author: lokesh
body: ![Screenshot 2022-08-16 123511.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/211202iF8C1500B2D11B77C/image-size/large?v=v2&px=999 "Screenshot 2022-08-16 123511.jpg")
Only custom page templates available when using Create page in Confluence automation action?
Asked by Connor:

Hello, I'm testing out the new automation action "Create page in Confluence". In the "Template" dropdown field, only our custom page templates are available to select.

Is it not possible to select the built-in Atlassian page templates? Has this feature been designed so only custom page templates can be used?

I have org/site admin permissions for our Atlassian org and site, I've confirmed I have the required Space permissions, and there are no page restrictions placed on the parent page I chose.


Answers:
author: Sam Harding
body: Hi all,

Unfortunately at this time, only the custom templates are available in the template picker for the create page action.

I have raised an improvement for this here <https://codebarrel.atlassian.net/browse/AUT-2437>

Cheers  
Sam

comments: author: Stefan Prelle
body: Great. Thank you.


author: Connor
body: Thanks [@Sam Harding](/t5/user/viewprofilepage/user-id/3964520) I feared that would be the answer.


author: Sadaf Mufti _105601_
body: hello [@Sam Harding](/t5/user/viewprofilepage/user-id/3964520) I am afraid that the feature is not even showing all custom templates list. I am automating release notes creation when a version is released but it does not populate the custom template we have built for selecting as page template.

Is this a bug? pleas explain.


author: Daiana Grimi
body: Hi [@Sadaf Mufti _105601_](/t5/user/viewprofilepage/user-id/3378270) !  
I'm trying to automate the creation of Release Notes when a version is released but I couldn't find the way to use it with my templates, but it just works when a "Global Template" is created and it's on the list. I believe that only a JIRA admin has access to create a Global Template.  
Did you find a way to automate it using templates? I'd like to know more about it, if that's ok whit you.

I'm still looking for a best way to reduce the manual work to update the content of the page created. I'd like to populate information from the version released automatically.

<br />

Thanks,

Daiana


author: Kevin Christmann
body: I seem to have the opposite issue. I can see all the default ones but not the one custom one I need.


author: Alex Lovett
body: weirdly i can only see the non-custom templates not the custom one i want to use

scratch that i can see all of them


author: Stefan Prelle
body: I am experiencing the same problem.


Tags: confluence-cloud

jira-cloud

jira-core-cloud

jira-software-cloud