youngmon/atlassian-qna huggingface dataset:
JIRA Automation (Data Center) Send Web Request: Proper format to populate page in the body
Asked by chilmcr:

Hello. I have the ability to use the Send Web Request and have it create a page in the proper area in Confluence. Awesome! I can't find anywhere that clearly explains how to make it choose a template. I'm in Data Center and I don't have a "Create Confluence Page", all I got is "Send Web Request". I tried using the "Custom Data" box (I would have posted an image if I knew how) and pasting in some html stuff and got it to show a title ("body":{"storage":{"value":"\<h3\>\<title\>Promote Checklist for \</title\>\</h3\>",.) PERFECT, that's a great start.

This is my code that works great to create my page in Confluence and shows my title.

{  
"type":"page",  
"ancestors":\[{"id":XXXXXXXXXX}\],  
"title":"{{issue.key}} Promote_Checklist",  
"space":{"key":"EDW"},  
"body":{"storage":{"value":"\<h3\>\<title\>Promote Checklist for \</title\>\</h3\>",  
"representation":"storage"}}  
}

What I cannot do (or understand) is this: Can someone please provide me an example of how I build a table so I can follow the pattern/syntax. For example, and I'll try to write this in English using my code.... How do I add (and what is the proper syntax) to create what I need to put a table on this Confluence page that is being created. I don't know where the commas, quotes or brackets are supposed to be and I'm assuming if I want to add a table, I need to put it in the "body" before the "representation", but I really have no clue what I'm talking about. Hopefully what I wrote is helpful. I'm so sorry.

{  
"type":"page",  
"ancestors":\[{"id":XXXXXXXXXX}\],  
"title":"{{issue.key}} Promote_Checklist",  
"space":{"key":"EDW"},  
"body":{"storage":{"value":"\<h3\>\<title\>Promote Checklist for \</title\>\</h3\>",

some space - meaning some white space between the title and the start of the table

Table Column1 Heading Table Column 2 Heading Table Column 3 Heading

Table Row One

Table Row Two

Table Row Three

some space - meaning some white space between the two tables

Table2 Column1 Heading Table2 Column 2 Heading Table2 Column 3 Heading

Table2 Row One

Table2 Row Two

Table2 Row Three

"representation":"storage"}}  
}


Answers:
author: Peter-Dave Sheehan
body: When you use a template in confluence, it just populates the body.storage.value for your upon page creation.

So if you want to do this from the rest API, you will have to first fetch the appropriate template, make changes to the storage value with your own content, then post it back to your confluence application.

As far as the request goes, your tables should be inside the double quote for body.storage.value (after \</h3\> and before the "

```
"body":{"storage":{"value":"<h3><title>Promote Checklist for </title></h3>####YOUR TABLE HERE###",
```

My suggestion would be to use an existing page with a table similar to what you are looking for then inspect its storage format and attempt to repliacate it. Or you can write plain HTML to build your table.


Tags: custom-data

data-center

format

jira

jira-data-center

json

page

syntax

template
Sending URL in comments via jira automation
Asked by Darius Lingevi?ius:

We have a automation, that sends content of a comment via email. However, if comment contains URL, it is displayed as \[[https://www.google.com/\|](https://www.google.com/|)<https://www.google.com>\] Is there a workaround to solve that?


Answers:
author: Rudy Holtkamp
body: Hi [@Darius Lingevi?ius](/t5/user/viewprofilepage/user-id/5468307) \& welcome to the community,

For URL via email, you need to use HTML.   
So the above URL should be added as:

```
<a href="https://www.google.com/">https://www.google.com</a>
```

Use the .replace for the comment, like this

```
{{comment.body.replace("[","<a href=\"").replace("|","\">").replace("]","</a>")}}
```

This will replace

\[ ? \<a href="  
\| ? "\>  
\] ? \</a\>

Good luck,  
Rudy


Tags: cloud

jira-service-management

jira-service-management-cloud
JIRA Automation - Cloned issues and linking
Asked by Kristin Knight:

When using Jira Automation and creating a Clone ticket, I would like to automatically link any existing links from the trigger ticket and link the trigger ticket. I'm struggling with how to do this. I thought maybe Branches, but I can't seem to find the right combination. Any suggestions would be greatly appreciated. Thank You!


Answers:
author: Clara Belin-Brosseau
body: Hello [@Kristin Knight](/t5/user/viewprofilepage/user-id/5434370)

If you're willing to use a third-party application, I can suggest trying our app [Elements Copy \& Sync](https://go.elements-apps.com/cs_2305_1) that allows you to copy issues with all their content (summary, description, custom fields, comments, attachments, etc.) and their child issues.

You'll be able to automatically [link the source issue to its clone](https://go.elements-apps.com/cs_2305_2).

Don't hesitate to try our app, it's free during 30 days and stays free under 10 users.

Kind regards,  
Clara


author: Luka Hummel - codefortynine
body: Hi [@Kristin Knight](/t5/user/viewprofilepage/user-id/5434370) and welcome to the community!

If you are willing to use a third party-app, our [Deep Clone for Jira](https://marketplace.atlassian.com/apps/1218652?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2693740) can help you achieve your goal. Deep Clone can clone whole issue hierarchies with their issue link structures intact, as well as creating links between original and cloned issues.![2024-05-22 16-38.png](https://community.atlassian.com/t5/image/serverpage/image-id/325368i5A7F1D311EAAEA55/image-size/large?v=v2&px=999 "2024-05-22 16-38.png")


author: Chris Rainey
body: Hey Kristin,

I can try to assist here - what steps do you have configured so far?


Tags: cloud

jira

jira-cloud
Can we use a Workflow status to trigger an automation?
Asked by juan.aguilar:

We would like to understand if it is possible to trigger an automation by using the status on a workflow scheme. If so is there any documentation, video to learn how to do this?


Answers:
author: ArulAnthonySebastian Nadar
body: Yes it is possible.

But if possible do it on transition, else you can make it at Automation.


author: Mikael Sandberg
body: Hi [@juan.aguilar](/t5/user/viewprofilepage/user-id/5115272),

Welcome to Atlassian Community!

Yes, it is possible and as [@Dan Breyen](/t5/user/viewprofilepage/user-id/5086375) mentioned this can be triggered on issue changed, but I would recommend using Issue transitioned instead since you can then make it more granular. [Here](https://www.atlassian.com/software/jira/guides/automation/overview#what-is-automation) is a good resource to get started with automation.


author: Dan Breyen
body: HI [@juan.aguilar](/t5/user/viewprofilepage/user-id/5115272) welcome to the community. Yes, I'm no Automation expert, but I would believe you can use a status change to trigger an Automation. You will trigger on 'Issue Changed' to trigger the automation and then you could use the "If" with a 'Field Condition' and use your Status that you want to trigger it.

Hope that helps.


Tags: cloud

jira

jira-cloud
Set only duplicate issue to 'done'
Asked by Sophia Smith:

Hello Team,

I am trying to set only duplicated issue to Done. My Automation logic sets all issue with same Summary to Done. I need to keep original Issue as it is.

This is Automation Rule:

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

Can you please assist here?

Thanks!


Answers:
author: Jack Brickey
body: Hi [@Sophia Smith](/t5/user/viewprofilepage/user-id/4997676) ,

a couple of editorial comments first if I may...

* At the risk of stating the obvious, unless the issues are created by a system the likelihood of exact match on summary is remote.
* While I am not familiar with your environment, I believe having automation alone marking duplicates is error prone.

now to respond to your request...

*** ** * ** ***

You need to somehow identify "the original" such that you could check for the absence of this condition in your current condition that checks the summary.

For example, if the original had a label, e.g. "original" then you could check for the absence of the label. Fundamentally the issue is in identifying the original.

Possibly you could approach differently, triggering on issue created vs. Scheduled. Create a rule that triggers on issue created that checks to see if any issue (lookupIssues with JQL) currently exists that has the exact summary as the trigger. If so then link to the existing issue and transition trigger issue to Done with resolution of Duplicate.


author: Sophia Smith
body: This was also a try, but it also set all issues to 'Done'  
![A1.png](https://community.atlassian.com/t5/image/serverpage/image-id/322861iE1037DFFEABA094C/image-size/large?v=v2&px=999 "A1.png")
Run an automation rule for archiving pages based on a Label
Asked by Veronica John:

Hi,

I've been trying to test if we can run an automation rule to archive a pages based on a "label". But I've had no success. Could someone please help me with the steps I need to take ?

Currently this is what I've tried but the rule keeps failing: What am I doing wrong?

![Screenshot 2024-05-09 at 12.39.48?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/322932i400C9E5C9E198395/image-size/large?v=v2&px=999 "Screenshot 2024-05-09 at 12.39.48?PM.png")


Answers:
author: Mikael Sandberg
body: Hi Veronica,

Welcome to Atlassian Community!

My guess is that it is your IF condition that is stopping your automation. Instead of comparing two values use the CQL option instead and set it to this CQL:

label = 'to-be-archived'

comments: author: Veronica John
body: Thank you!! This worked!! :)


author: Mikael Sandberg
body: If you are on the Premium or Enterprise Plan you can now use page conditions instead of the CQL, see the new announcement about it [here](https://community.atlassian.com/t5/Confluence-articles/Automation-for-Confluence-Page-Condition-is-here/ba-p/2693935).


author: Shawn Doyle - ReleaseTEAM
body: It's most likely the {{labels.name}} in your if block. labels returns a list, so the equal condition isn't going to work, you can try switching it to 'contains'.

### Name {#toc-hId-2120607772}

{{label.name}} -- the name of the label

{{labels.name}} -- a list of names of all the labels that were added or removed


author: Jerrold - Empyra
body: Hi [@Veronica John](/t5/user/viewprofilepage/user-id/5493741)

Could you kindly share the audit log for the automation process, Were there any errors reported, and is there a specific reason why the archive action was executed twice before sending the email.

Thank you.


Tags: archive

cloud

confluence

confluence-cloud

rule
How can one craft an automation protocol to alert an individual in the event of a priority being low
Asked by brian odriguez:

If a user changes the priority of an issue from either P1 or P2 to a different level, alert someone about the modification.


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

What have you tried thus far to solve this need?

If you have a rule that is not working as expected, please post an image of your complete rule, an image of the audit log details, and describe what does not work as expected. That will provide context for the community to offer suggestions.

If you have not started a rule, I encourage trying to do so. That will help you learn and ensure the rule does exactly what you want. To get you started, you could use a field value changed trigger, and the field change smart values to compare the before / after values:

* <https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Field-value-changed>
* <https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#Issue-fields-condition>
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange-->

Kind regards,  
Bill


author: Dave Rosenlund _Trundl_
body: I think you're looking for something like:

![Screenshot 2024-05-08 at 2.17.36?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/322708iB0CB6602498DE588/image-size/large?v=v2&px=999 "Screenshot 2024-05-08 at 2.17.36?PM.png")

That's the simple version. But of course, you can/should tune this to your needs.

You may want to check out some of [these free, on-demand learning courses](https://university.atlassian.com/student/catalog/list?search=automation) from Atlassian to help you learn how to fully leverage Atlassian Automation.

Hope this helps,

-dave
repository backup and recovery
Asked by Saber Hosseini:

Hello all,

In our team, we have some concerns about repository backup and recovery. We were wondering about types of backup bitbucket offers to developers. More specifically, are there other ways of backing up than just copying repository into an offline machine? Or, does Atlassian offer any types of backup?

The other question, is there any way to recover of removed/corrupted repos?

Best regards,

//Saber


Answers:
author: Daria Kulikova
body: Hello [@Saber Hosseini](/t5/user/viewprofilepage/user-id/5333602), to back up Bitbucket data you have a few options - [Bitbucket Zero Downtime backup](https://confluence.atlassian.com/bitbucketserver/bitbucket-zero-downtime-backup-829920023.html), [Bitbucket DIY Backup](https://confluence.atlassian.com/bitbucketserver087/bitbucket-diy-backup-1209861537.html), write your own backup script, or use dedicated third-party backup tools.

This article may help you better understand different options: [Bitbucket Backup Tools for Secure Data Protection](https://xopero.com/blog/en/best-bitbucket-backup-tools-for-secure-data-protection/)

I hope you will find it helpful

Kind regards,

Daria


author: Charlie Misonne
body: Hi Saber

What kind of backups are you looking for?

Are you afraid Atlassian might lose your data?

Or are you looking for a solution to rtecover repositories in case one of your users accidentially removes a repo or a part of a repo?

Here is some information from Atlassian: [Does Bitbucket Cloud backup my repositories?](https://confluence.atlassian.com/bbkb/does-bitbucket-backup-my-repositories-1168845079.html)   
In short: Atlassian can restore your repos up to 7 days after deletion.

In case an error happens on their own side they have their own restore mechanisms.

You could also put your own mechanism in place to fetch all Bitbucket cloud repositories locally.  
But to be honest: Git is already a distributed system and every developer using a repo has a local copy of the branches they checked out previously.

comments: author: Saber Hosseini
body: Hi Charlie,

Thanks for the reply.

Actually, we are afraid that some user, intentionally or unintentionally, might remove a repo, so we were looking for some way to bring it back. We were wondering is there any type of long term back up supported by Atlassian? Or can we activate this kind of support by changing our subscription type?

Regards,

//Saber


author: Charlie Misonne
body: No there is no extended backup from Atlassian regardless of your subscription.

I would start by limiting the amount of users with delete permissions (admins).


Tags: bitbucket-cloud

cloud
Bitbucket???????????????????????????????????????
Asked by ?? ??:

???Bitbucket??????????????????????????????????????????????????????

* ????????????????
* ????????????????????????????
* ???????????????????????Return value: 128?

????????????????????????????????????????


Answers:
author: Chung Jeon
body: ?????????????????????

???????????????????????????????????????????????????????????

???????????????????????????????

comments: author: Chung Jeon
body: ????????????????

???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????


Tags: bitbucket-cloud

cloud
How could you see pipeline status in SourceTree?
Asked by Ajay:

This link (<https://blog.sourcetreeapp.com/2017/11/30/getting-started-with-bitbucket-pipelines-in-sourcetree/>) give steps to directly check pipeline status from SourceTree without going to cloud console. I have no idea what is explained in last step of this, simply pull to see the pipeline status? I don't see Success or failure status in that screenshot.. Any idea?

Thanks,  
Ajay


Answers:
author: Patrik S
body: Hey [@Ajay](/t5/user/viewprofilepage/user-id/5050402) ,

thanks for reaching out!

As long as you have your [Sourcetree configured to authenticate over HTTPS or OAuth](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-not-showing-build-status/qaq-p/730191), when cloning a repository, you should be able to see the build status associated with each commit on the commit view page on the last column, as shown in the screenshot below:   
![Screenshot 2024-08-27 at 6.19.20?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/344116i904A211AF125CFB6/image-size/large?v=v2&px=999 "Screenshot 2024-08-27 at 6.19.20?PM.png")

Thank you, [@Ajay](/t5/user/viewprofilepage/user-id/5050402) !  
Patrik S


Tags: bitbucket-cloud

cloud

sourcetree
Access downloads section from sourcetree
Asked by Ajay:

Hi,

Is there a way to directly access Bitbucket Downloads section from sourcetree that allows to download the artifacts that I have uploaded to Bitbucket?

![BB_Downloads_SourceTree.png](/t5/image/serverpage/image-id/343676i28F553ED27A71395/image-size/large?v=v2&px=999 "BB_Downloads_SourceTree.png")

Thanks,  
Ajay


Answers:
author: Patrik S
body: Hey [@Ajay](/t5/user/viewprofilepage/user-id/5050402) ,

thank you for reaching out!

I'm afraid that Sourcetree only interact with the git repository itself, not with the Downloads section.

The downloads sections is currently accessible through the website, as shown in your screenshot, and also through the Bitbucket public API endpoint below:

* [Downloads - Bitbucket Cloud API documentation](http://Downloads - Bitbucket Cloud API documentation)

Thank you, [@Ajay](/t5/user/viewprofilepage/user-id/5050402) !  
Patrik S


Tags: bitbucket-cloud

cloud

sourcetree
Pull request din?t merge using auto merge
Asked by rm_ya reddy:

Other colleague pull requests got auto merged . We can see the entries. I can see his changes in subsequent branches but auto merge entries are not there as there was a delay or failure in auto merge at that time


Answers:
author: vikram
body: Hi [@rm_ya reddy](/t5/user/viewprofilepage/user-id/5574142)

Welcome to Atlassian community.

As per you, there was a delay or failure in auto merge,

As you have merge conflicts, you can't click the Merge button from the pull request to merge. To resolve these conflicts, you have to pull the changes to your local repository and fix them then push.

Please go through the below url knowledge document for understanding

[Resolve merge conflicts \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/resolve-merge-conflicts/)

Let me know if it worked.

Vikram P


Tags: bitbucket-data-center

bitbucket-server

server
I can not open link
Asked by Chandan Jana:

[https://bitbucket.org/site/oauth2/authorize?response_type=code\&client_id=HJdmKXV87DsmC9zSWB\&state=4838b42efb4b4adbbf22c0efe4b176b6\&code_challenge_method=S256\&code_challenge=PA3fMOQfeh4Ih-yPRoF9zXLXNnbaJkyECy5J7b0M1FM\&redirect_uri=http%3a%2f%2flocalhost%3a34106%2f\&scope=repository%3awrite+account](https://bitbucket.org/site/oauth2/authorize?response_type=code&client_id=HJdmKXV87DsmC9zSWB&state=4838b42efb4b4adbbf22c0efe4b176b6&code_challenge_method=S256&code_challenge=PA3fMOQfeh4Ih-yPRoF9zXLXNnbaJkyECy5J7b0M1FM&redirect_uri=http%3a%2f%2flocalhost%3a34106%2f&scope=repository%3awrite+account)

I can not open link, when try open it it diverting to

[http://localhost:34106/?code=qqbHGHFxDHftsuHqSM\&state=4838b42efb4b4adbbf22c0efe4b176b6](http://localhost:34106/?code=qqbHGHFxDHftsuHqSM&state=4838b42efb4b4adbbf22c0efe4b176b6)


Answers:
author: Syahrul
body: G'day, [@Chandan Jana](/t5/user/viewprofilepage/user-id/5575063)

Welcome to the community!

Are you trying to obtain the access/bearer tokens? If yes, then it's expected because when generating your OAuth, you likely did input localhost in your **Callback** URL when generating the OAuth.

I highly suggest you review our OAuth documentation page for more information at:

[Bitbucket cloud OAuth](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/)

Regards,  
Syahrul


Tags: atlassian-accounts

bitbucket-cloud

cloud

not-applicable
How to Re-install Removed 'Built-In' Apps
Asked by Jovan Paravinja:

I have a workspace where some built-in apps got uninstalled. Like the 'Jira' and the 'chat notifications' app.

There seems no way to re-install these apps? These apps do not show up in the market place. So, how am I supposed to add them back.

the apps installed in another workspace:

<https://www.imghippo.com/i/yFObE1724408449.png>


Answers:
author: Saxea _Flowie_
body: Hi [@Jovan Paravinja](/t5/user/viewprofilepage/user-id/4800127)

Bitbucket re-installs them automatically when you try to setup them.

For the chat you follow these [instructions,](https://marketplace.atlassian.com/apps/1218781/bitbucket-cloud-for-slack-official?hosting=cloud&tab=installation) and for Jira you can do a similar process.


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket
Asked by ANANYA VELAGAPUDI:

I'm getting following Error

We couldn't log you in {#toc-hId--348807869}
--------------------------------------------

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.

please help me fix the error at the earliest


Answers:
author: Patrik S
body: Hey [@ANANYA VELAGAPUDI](/t5/user/viewprofilepage/user-id/5574975) ,

and welcome to the Community!

I see you have raised an internal ticket with our team, and one of the support engineers managed to update your account status to Active again, so you can login as usual to your Bitbucket account.

Let us know in case you are still facing issues to login.

Thank you [@ANANYA VELAGAPUDI](/t5/user/viewprofilepage/user-id/5574975) !

Patrik S


author: ANANYA VELAGAPUDI
body: Hi Team, Could someone help me resolve this issue


Tags: bitbucket-cloud

cloud
BBS-221709 Restrict the repository access to specific IP address.
Asked by Yunus Kayamkhani:

got email from email address

bitbucket-support-system@am.atlassian.com  

is this genuine sender?


Answers:
author: Yunus Kayamkhani
body: \<redacted for privacy\>


author: Patrik S
body: Hello [@Yunus Kayamkhani](/t5/user/viewprofilepage/user-id/5418719) ,

thank you for reaching out to the community!

That email is genuine and the address is the official Bitbucket Cloud Support mailbox. You have received that email because one of your colleagues has opened a support ticket with Bitbucket and included you in that ticket, so you received email notifications on the comments/updates on that particular ticket.

I hope that clarifies your concerns :) Let us know if you have any questions.

Thank you, [@Yunus Kayamkhani](/t5/user/viewprofilepage/user-id/5418719) !

Patrik S


Tags: bitbucket-cloud

cloud
Skip tags pipeline if tag contains annotation "skip ci"
Asked by Patrick Wakano:

When a tag is annotated beginning with "skip ci" it doesn't actually skip the tags pipeline and the pipeline is run anyway.

Given the tag doesn't have a comment/message, shouldn't the annotation be used to perform the same logic to skip the pipeline?


Answers:
author: Ben
body: Hi Patrick,

The intended usage of \[skip ci\] is to create a commit with \[skip ci\] as the commit message, and then push a tag after this to apply the tag to that commit.

When you do so in this manner, the tag build is not triggered.

If this is not the method you are using to tag commits, may I know what your use case is?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud