youngmon/atlassian-qna huggingface dataset:
Raise a request web form
Asked by Lee Hutchinson:

I have created a handful of request types to use for raise support tickets in our business.

I want to create a web form I can share internally with staff and the can use it to raise tickets based on these request types.

What is the best way to do this?


Answers:
author: John Funk
body: Hi Lee,

You can create an easy form for each Request Type by simply going to Project Settings \> Request Types. Then click on the Request Type which will bring you to the form where you can add the fields you want. Then you can simply share the URL for the form with the staff.

comments: author: Lee Hutchinson
body: Thanks John, I think I was over egging it. I had a request type for each possible issue people might have rather than one request type for support and then the issues in a dropdown box.


author: John Funk
body: You are welcome. Glad it was helpful!


author: Lee Hutchinson
body: Is there a way that in a drop down that only certain members of staff can select certain options?

We have some issues that can only be raised by managers of teams


Tags: cloud

jira-service-management

jira-service-management-cloud
Error for LDAP synchronize in User Directory
Asked by Ophelia Tao:

Dear Support,

We recently triggered the following error while LDAP synchronize in User Directory. We guess it's about the amendment of user_name field of user data source. However, we cannot reproduce this issue in another environment.

Can you help estimate the impact and the further action we should take while facing this error.


Answers:
author: Dirk Ronsmans
body: [@Ophelia Tao](/t5/user/viewprofilepage/user-id/5597463) ,

Can you post the actual error or a bit more info?

Keep in mind we are a volunteer run support community. if you require Atlassian engineer support you can reach out to them at <https://support.atlassian.com/contact>


Tags: jira-service-management

jira-service-management-server

server
How can I create a parent page and multiple Sub-Pages with automation?
Asked by Bernd Anderer:

When an Issue is create in Jira, I want to create a NewPage in a Confluence space, plus a list of sub-pages underneath the newly created page. The result should look like this:

Space

-NewPage

-- Page1 - x

-- Page2 -x

-NewPage2

--Page1-y

--Page2-y

the name of NewPage is based on the issue created in Jira. The Subpages will have a name that consists of a fixed part (e.g. Page1) + some individual part (e.g. -x)

The idea is, that with each new Jira Issue, I want to setup a documentation structure in Confluence, that will be the same for each new Issue.

How can I do that? I tried it in Jira automation - but don't really know on how to use the

{{createdPage}} variable, to reference the first page as parent for all the sub-pages

Any idea on how I can achieve this?

Thanks in advance

Bernd


Answers:
author: Rick Westbrock
body: The way we solved this was to create a smart value named parentPageId and set it to {{createdPage.Id}} from the NewPage.

The person who created the automation just has the child pages created under the same parent that NewPage was created under then used a web request action to move the child page under NewPage by calling <https://24hf.atlassian.net/wiki/rest/api/content/{{createdPage.Id}}/move/append/{{parentPageId>}}

We had to use the web request as a workaround due to the fact that the Parent Page field of the action will not accept a smart value.


author: Nikola Perisic
body: Hello [@Bernd Anderer](/t5/user/viewprofilepage/user-id/565597)

![Screenshot 2024-07-02 at 13.53.25.png](https://community.atlassian.com/t5/image/serverpage/image-id/333012i543F94AD6ECEE1F3/image-dimensions/392x402?v=v2 "Screenshot 2024-07-02 at 13.53.25.png")![Screenshot 2024-07-02 at 13.53.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/333011iF5FC08A7FBDE67E1/image-dimensions/382x392?v=v2 "Screenshot 2024-07-02 at 13.53.34.png")

You can test this automation rule, where a page in first action is being created based on the summary of the issue, the second action is creating a sub-page and in the "Parent page" field, the page that was made from the first automation is being selected.

comments: author: Bernd Anderer
body: Hi [@Nikola Perisic](/t5/user/viewprofilepage/user-id/5166624)

thank you for your feedback.

I am not able to add anything meaningful in "Parent Page".

What did you add there? I can not add any variable... I can only select existing pages... am I doing something wrong?![Bildschirmfoto 2024-07-03 um 14.49.11.png](https://community.atlassian.com/t5/image/serverpage/image-id/333281i317F7A89262ABC87/image-size/large?v=v2&px=999 "Bildschirmfoto 2024-07-03 um 14.49.11.png")
how to create Integration between Jira and Slack to notify watchers ?
Asked by Eran Roiter:

Hey all,

Does anyone have an idea how do I perform an integration between Jira and Slack, so that every time there's an update of a ticket (task, bug) all the watchers will receive a notification in Slack.

Thanks !


Answers:
author: Josh_Unito
body: [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455) You could set up a simple flow with Unito to send [Slack messages based on Jira issues](https://bit.ly/ATL-Jira-Slack-Int) that does this. I'm not sure about the updates, but at the very least you could have a flow that sends a message to a specific channel every time an issue is created and/or reaches a specific state (e.g., when the label is set to XYZ).


author: Gaurav
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455) ,   

If you are open for 3rd party, You can try[http://slackjira.com/](http://slackjira.com/%20) for the same, we have solved this problem for lot's of companies  
We also provide custom workflow or changes whatever you require


author: Jim Knepley - ReleaseTEAM
body: There's an app to use [Jira Cloud with Slack](https://support.atlassian.com/jira-software-cloud/docs/use-jira-cloud-for-slack/) and similar for [Jira Data Center](https://marketplace.atlassian.com/apps/1220099/jira-data-center-for-slack-official?tab=overview&hosting=datacenter).

From my experience, using Slack gives rise to the same alert fatigue as using email, but some users might prefer it.

comments: author: Eran Roiter
body: Hey Jim,  
Thanks for your answer, we do use it. But i can't find a way to send personal messages via slack to the watchers...

As you can see, there are very limited options.

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


author: Jim Knepley - ReleaseTEAM
body: Apologies, I misinterpreted what you're asking for. I don't think it's possible to configure Jira to notify individuals, only channels.

You could try to do it by writing up a function with ScriptRunner to interact with the Slack API, which is reasonably friendly. One challenge, targeting a Slack user directly or via a "@mention" requires that you know the Slack member ID and not their username.


Tags: integration

slack

watcher
AI Trigger Error: "Your input is too long to be processed."
Asked by mrhodes:

I tried using this AI trigger in rules today, and got this error: "Your input is too long to be processed" I had a sentence in the AI text for the trigger, and am using the AI on the page content (instead of the title which is the other option here)

My first instinct was to shorten the AI trigger text to two words, vs the sentence I started with.... but the error is still occurring.

1. Is this error about the page input size (instead of the AI parameter)?
2. Is this a known issue?
3. Can we perhaps make this error message more meaningful/useful?


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

Is this question regarding the new AI feature for rules which is in Beta: <https://community.atlassian.com/t5/Automation-articles/New-AI-feature-in-Beta-Natural-Language-for-Jira-Automation/ba-p/2651640>

If so, I recommend contacting Atlassian support for assistance through your Jira Site Admin or posting your question on that article thread. Your Jira Site Admin can submit a support ticket here: <https://support.atlassian.com/contact/#/>

If instead this is a question for an automation rule which is not working as expected, please add to your question:

* describe the problem you are trying to solve (that is, "why do this");
* an image of your complete automation rule;
* images of any relevant actions / conditions / branches;
* an image of the audit log details showing the rule execution; and
* explain what is not working as expected.

Those will provide context for the community to offer ideas. Thanks!

Kind regards,  
Bill


Tags: cloud

confluence

confluence-cloud
Automation - Inherit a date from trigger issue and add X days
Asked by caglad:

We are building an automation rule that takes an epic and uses different types of dates from that to make it a due date on the "standard issue type" children of the epic..

Since I dont have all dates captured in the epic, I want to be able to do something like "configuration due date" plus 5 days. I know if I just want to NOT pull from the trigger date I could do something like

now.plusBusinessDays(5)

My question is how can I do date on the new issue by saying tiggerissue.configurationduedate-5days. Is this even possible.


Answers:
author: Bill Sheboy
body: Hi [@caglad](/t5/user/viewprofilepage/user-id/3616945)

Yes, that is possible.

You will want to use the {{triggerIssue}} smart value as a start: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--triggerIssue-->

Then you need to identify the correct smart value (or custom field id) for your field: <https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/>

And finally, use the correct function and units of measure to adjust the date value: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-minus-unit--->

If that does not help, please post images of the complete rule, the action where you are performing the date adjustment, and of the audit log details showing the rule execution. Those will provide context for the community to make suggestions.

Kind regards,  
Bill

comments: author: caglad
body: So, it would be....

{{triggerIssue.customfield_10226.plusbusinessDays(5)}}


author: caglad
body: THANK YOU!!! that worked! should know to ask before spending 2 hours...


Tags: cloud

jira

jira-cloud
How to use smart values for automation that take values from the Description.
Asked by Eran Roiter:

Hey all, i have automation that triggered every time the description is updated.

Then it creates a variable and uses smart values to edit a custom field and add tagged users from the description to the custom field.

When i edit the description at first and tag a user its working, but when i edit the description again and add another user it won't add him.  

any ideas what I'm missing?

Thanks !


Answers:
author: Bill Sheboy
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455)

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

From what you describe, I hypothesize there is an error in using the match() function to parse out the mentioned users.

The match() function can have problems if there are newlines or multiple matches not handled properly. Perhaps try this expression to get the account id values from the mentions:

```
{{issue.description.replace("\n"," ").split(" ").match("\[~accountid:(.*)\]").distinct}}
```

That replaces the newlines and then splits on spaces first, reducing the scope the match needs to check. Then it returns only the distinct values in case someone is mentioned multiple times.

Kind regards,  
Bill

comments: author: Eran Roiter
body: Thanks for you answer!   

I will try what you suggested.


author: Eran Roiter
body: It worked !!! thanks :)


Tags: cloud

custom-field

jira

jira-cloud

smart-value
Add all of Custom field (Numerical Fields) within linked issue
Asked by Mihir Vibhu:

Hi,

I am trying to calculate sum of customfield for all of linked issue into 1 field which will show common value for all of linked issue by Duplicates or Is duplicated by.

For eg:

Ticket 1 is linked to ticket 2 and 3 with IS Duplicated by. Has a field1 in all of linked issue with ARR, and we wish to show sum of Field1 from all of linked ticket1/2/3 into Field 2 for all of linked issues.

I used:

Brachned\> For Linked issue\> Then LookUp Issue \> then edit field: Field1

{{lookupIssues.customfield_12864.sum}}. But it's not giving me the sum exactly.


Answers:
author: Bill Sheboy
body: Hi [@Mihir Vibhu](/t5/user/viewprofilepage/user-id/5464869)

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

If you are trying to update a single issue's field with that sum, you likely do not need a branch in the rule. Instead only the lookup issues action is needed.

Seeing your complete rule and knowing the types of the fields (e.g., number, text, etc.) will help to confirm this.

Kind regards,  
Bill


Tags: cloud

jira-service-management

jira-service-management-cloud
remove label after editing
Asked by Cedric Ahrend:

Hey all,

I'm just starting with Jira as Product Owner and I'm trying use automation to speed up my work process. Every time a story is created a lable "toBeRefined" is automatically added, to help me with Backlog Refinement.

Then I have to manually remove the label, once refined which is a source for errors and confusion, if I forget to do it. So I tried the JSON field with automation to remove the label every time I edit an issue and enter a value in Story Points.

The Audit logs keeps telling me there's an 'Error while parsing additional fields. Not valid JSON.'

{ "fields":

{ "environment": "Thanks for raising {{issue.key}}.",

"labels": \[

"bugfix",

"blitz_test" \],

"update":{

"labels": \[ { "remove": "toBeRefined" } \] },

"Custom Field Name": { "value": "red" }

}

}

For automation I use

When: Value changes for Story point estimate, Story Points

Then: Edit issue fields Labels, Advanced

What am I doing wrong here?


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

There appears to be both some leftover JSON, from the field template, and incorrect syntax for label updates. Please look here for the correct syntax to add / remove labels: <https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Labels>

And...from what you describe, **you do not need JSON for this scenario** . Instead, you may remove the JSON, select the Labels field from the dropdown list, and at the right side ... menu select the ADDREMOVE option. That will allow you to enter the specific label in the *Values to Remove* field.

Kind regards,  
Bill

comments: author: Cedric Ahrend
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) -- thank you :)

the ... menu solution did the trick, thank you very much!

Kind regards

Cedric


Tags: label

remove
Does viewing a page count as "activity?"
Asked by Hank Church:

I am trying to set up an automation rule in Confluence that is based on a certain period of "inactivity" on a page. Does simply viewing the page count as activity, and negate the rule? Also, if someone has a tab open to that page, but is not actually looking at it, does that count as viewing / activity as well?


Answers:
author: Benjamin
body: HI [@Hank Church](/t5/user/viewprofilepage/user-id/5309416) ,

I know that the viewing page is tracked in insights. However, I don't recall viewing as part of an automation rules set. Rules are usually around keeping the content up to date and lifecycle of documentation

comments: author: Hank Church
body: My rule was supposed to change a page's status from Verified to Needs Review IF the page was "Inactive" for a certain period of time. Then it was going to send an email notification to the page owner that their status had changed and that page needs to be reviewed.

On two of the spaces i was testing, the rule did not work. On another space i was testing the rule worked, and i am trying to figure out why the rule worked on one space and not on the other two.


author: Hank Church
body: The one rule was set to run on the three spaces at the same time.


Tags: cloud

confluence

confluence-automation

confluence-cloud
How to make a automation rule which copy the most recently created page among child pages?
Asked by hasungjoo:

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

How to make a automation rule which copy the most recently created page among child pages?

When Monday 9 am every week, make "week 6" named child pages copy from "week 5" page.

is it possible to make by automation rule?


Answers:
author: Trev Angle
body: Hi [@hasungjoo](/t5/user/viewprofilepage/user-id/5530539), this is Trevor from the Confluence automation team. Here's a rule that I think would work for you:

![Screenshot 2024-06-28 at 1.10.07?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/332514i7BF100CFA53C75E4/image-size/large?v=v2&px=999 "Screenshot 2024-06-28 at 1.10.07?PM.png")

This rules runs every Monday at 9 AM, finds pages which were published within the last 8 days that have a certain parent page, and then publishes a copy with the title "Week of 6/24/24" (for example). So the rule assumes that no more than one page gets published each week under the parent.

Here's the CQL that I used to configure the "related entities" branch component: **type = page AND parent = 92405761 AND created \>= now("-8d")**

You would just replace the number there with the ID of your parent page.

Another approach you could consider is having a single template page that gets copied every week. Then your CQL would be even simpler: **type = page AND id = 123456** (where the number is the ID of your template page)

comments: author: hasungjoo
body: Thanks [@Trev Angle](/t5/user/viewprofilepage/user-id/5027568) ,


author: Bill Sheboy
body: Hi [@hasungjoo](/t5/user/viewprofilepage/user-id/5530539) -- Welcome to the Atlassian Community!

*First thing, I am not using Confluence automation rules, and so my suggestions are based on what I know about automation rules in general. With that out of the way...*

I do not believe there is a "lookup pages" rule action to use CQL to find the pages, and so identify the most recent one.

However I hypothesize a rule could use the Send Web Request action to call the Confluence REST API to get the pages in your space, identify the most recently created one, and then use that for the copy page action.

Kind regards,  
Bill

comments: author: hasungjoo
body: Thanks!
Pulling the latest comment for each issue with Automation
Asked by Shiyao Ling:

Hello,

I am very new to Jira. We are trying to auto populate a custom field with the last comment for each issue in a project.

I have followed the steps from various existing resolved posts out there: create custom field \> create automation rule to populate the field with the latest comment. The rule works when I only have the custom field in 1 type of issue, but as soon as I add the same custom field to another issue type, I run into problems. What am I doing wrong? Does each issue type within the same project require its own unique custom field name?

Here is the rule I set up:

![Screenshot 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/331930iDCF5A3880E7C2E63/image-size/large?v=v2&px=999 "Screenshot 1.jpg")![Screenshot 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/331932i3D866F465F2265DF/image-size/large?v=v2&px=999 "Screenshot 2.jpg")

This is the error I get if I add the same custom field to more than one issue type.

![Screenshot 3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/331931iF029DC30EA89E64C/image-size/large?v=v2&px=999 "Screenshot 3.jpg")

Thanks!


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

Did you confirm there is only one field by that name, Last comment text, in your team-managed project for the different issue types?

For the trigger issue's type in that example, did you confirm the field was added to the views?

To help confirm both of those, please use this how-to article with example issues to check the field is present, unique, and has the same custom field id: <https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/>

Kind regards,  
Bill

comments: author: Shiyao Ling
body: Thank you Bill! The how-to article was super helpful, I found out the problem and now the automation rule is working properly!


author: Bill Sheboy
body: Awesome; I am glad to learn that helped!

What was the root cause of the problem?


author: Shiyao Ling
body: It was such a rookie mistake. For each issue type, instead of just creating a new custom field for the first issue type then drag and drop from the "suggested fields" bar for the remaining, I was creating a new custom field and typing in the name for every single one of them. This indeed resulted in several custom fields with the same name, and the only way I discovered/confirmed that was by looking at the smart value. So thank you!


Tags: cloud

jira

jira-cloud