youngmon/atlassian-qna huggingface dataset:
Printing response using rest assured
Asked by Lobsang:

Hi, recently i started learning rest assured and I encounter strange behaviour.

Basically I created request to create boards with default param on defaultLists = true, then added another request to read from board and finally simple print to see response - every time on single print I get two identical prints of two list containing same items.

```
String boardName = "Board without lists";

Response creationResponse = given()
        .queryParam("key", key)
        .queryParam("token", token)
        .queryParam("name", boardName)
        .queryParam("defaultLists", true)
        .contentType(ContentType.JSON)
        .when()
        .post(url)
        .then()
        .statusCode(HttpStatus.SC_OK)
        .extract()
        .response();

JsonPath jPathPost = creationResponse.jsonPath();
idBoard = jPathPost.get("id");

Assertions.assertEquals(boardName, jPathPost.get("name"));

Response getResponse = given()
        .queryParam("key", key)
        .queryParam("token", token)
        .contentType(ContentType.JSON)
        .when()
        .get(url + "/" + idBoard + "/lists")
        .then()
        .statusCode(HttpStatus.SC_OK)
        .extract()
        .response();

System.out.print(getResponse.print());
```

Any idea why on console I receive two same lists? Checked on postman with same request and i got normal response with one list.

Thanks in advance!


Answers:
author: Nicolas Grossi
body: [@Lobsang](/t5/user/viewprofilepage/user-id/4694358) welcome! Is this question still "active" ?

Nicolas
find the first card linked in the attachments and set the same due date
Asked by Giuseppe Voci:

Hi,

```
Hi, I would like to create an automation with which when I create an item, with a member and an due date, in a checklist, a card is automatically created in a specific list with the same name as the item in the checklist, the same member and the same due date. It's possible? Thanks!
```


Answers:
author: Hannah Humbert - Simpla Workflows
body: Hi [@Giuseppe Voci](/t5/user/viewprofilepage/user-id/4694287) ! Welcome to the community :) are you wanting to copy the due date from the checklist item, or the card? It is currently possible to copy labels and members from the card into the newly generated linked card:  

![butler convert checklist item.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/176138i48116123A9AF3345/image-dimensions/441x145?v=v2 "butler convert checklist item.PNG")  

It doesn't look like Butler has incorporated any automation around members and due dates at the *checklist item level,* however.   

As an alternative, you could add the due date into the checklist item title, and use a rule that will auto-set the due date on the linked card based on the card name like so:  
![set due date linked card.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/176139i776BF408E0461465/image-size/large?v=v2&px=999 "set due date linked card.PNG")  

It doesn't solve the part around copying over the member, though, so not ideal. I'd reach out to [Trello support](https://trello.com/contact) directly and see if it's on their roadmap!   

comments: author: Giuseppe Voci
body: Thank you Hannah, unfortunately this does not solve because I am an event photographer and most of the cards have a date in the title. Unfortunately, I believe it is not currently possible. Thanks again for the help


author: Hannah Humbert - Simpla Workflows
body: [@Giuseppe Voci](/t5/user/viewprofilepage/user-id/4694287) ah ok - sorry I couldn't be of more help! Hopefully, Trello will implement more automation options around checklist due dates and members in the future!


author: Giuseppe Voci
body: The only thing I can not do is copy the same due date


Tags: automation
How to temporary disable notifications from a member in holiday
Asked by Quentin:

Hello,

I am owner of a small company of few workers.

I have right now a boring case and would like to know if it's possible to do something to get rid of it.

One of my employe is in holiday during one month. During that period, he doesn't check his trello account.

My main problem is this employe has an automatic e-mail response to say he is in holidays. Problem : We are getting everyday more than 30 commentaries on several cards and tables as the automatic reply is sent and generate commentary.

What could we do in order to remove totally that auto-commentary without impacting all the accessibility of this member when he will be back + all the members still working which can continue to put commentary ?

I tried to find like a Power-Up for people in Holiday or a Trello parameter but without success...

Hope you can help. thank you and have a good day !


Answers:
author: Vero Rivas
body: Hi [@Quentin](/t5/user/viewprofilepage/user-id/4693887)

Look at this post, maybe can help you

<https://community.atlassian.com/t5/Trello-questions/Disabling-due-date-notifications-on-the-weekend/qaq-p/958246>

Cheers

comments: author: Quentin
body: I checked that but unfortunately we are not using Gmail so we can put us in "holiday /out" from our email servor.

I really think you could design something to have a setting on any Trello member when he is out of work so there isn't any email reply or the next email recap will be after coming back to work.

Is it something you can do ?

Otherwsise can we desactivate the "email reply" ? It will first solve a part of my issue.

Thank you
Power ups suivre le colis
Asked by Confort Service:

Bonjour,

Je souhaiterai suivre avec Power ups "suivre le colis", mes envois par la poste (fran?aise).

Impossible car n'existe pas.

Comment faire pour le faire ajouter ?

merci d'avance.


Answers:
author: Alex W
body: Hey [@Confort Service](/t5/user/viewprofilepage/user-id/4693448) - unfortunately we're not looking to add any more carriers to the Package Tracker Power-Up at this time, as it would cost us a lot of money.


Tags: language-fr
Can anyone explain why the save button on my cards is greyed out.
Asked by Sass Tetzlaff:

I'm adding cards to boards in the same way as I have been for weeks and then today it just won't save the info I have inserted into the card. The Save button is greyed out.

I'm on the same account, in the same board, using the same methods as before but suddenly this.

So frustrating.


Answers:
author: Erin Machura
body: I'm having the exact same problem!


author: Michael Pryor
body: Can you paste a picture?

comments: author: Erin Machura
body: ![703099AD-A8BC-46DC-BD54-A862B228CC7F.png](https://community.atlassian.com/t5/image/serverpage/image-id/198501i4DF394C76C4B0A9C/image-size/large?v=v2&px=999 "703099AD-A8BC-46DC-BD54-A862B228CC7F.png")


author: Erin Machura
body: I updated the app today and now I can't save anything on new cards


author: Mikhail Thomas
body: Hello! Have you gotten this fixed yet or found a workaround? This is infuriating!
Using the Pipeline to update our files on the server by ftp
Asked by Candice Horie:

Hello, I am new using Jira and I am trying to update our files by FTP, but is when I do that updates all the files in the repository, not just the ones I updated.

there is some way to update only the files that were updated in the repo?

Thank you


Answers:
author: Theodora Boudale
body: Hi Candice,

Can you confirm if you are using Bitbucket Pipelines to deploy your files?

What tool/commands are you using to update the files on your server from the Pipelines build?

You can use git ftp for this purpose:

* <https://github.com/git-ftp/git-ftp/>

After you make the first deployment with **git ftp init** , you can use the command **git ftp push** in your bitbucket-pipelines.yml file (and remove the **git ftp init** command), this should push only the updated files.

Is this something that works for you?

Kind regards,  
Theodora


Tags: bitbucket-pipelines

cloud

ftp

jira-software

jira-software-cloud
Our bitbucket service is not accessible via URL port 7990
Asked by romeo:

Hi,

We are an on-prem deployed bitbucket server and it was working for months now. A week suddenly stopped working. When I restart it gives the below with success but the page is not loading.

Starting Bitbucket webapp at <http://172.17.250.54:7990>  
The Bitbucket webapp has been started.

Appreciate your assistance.


Answers:
author: Nic Brough -Adaptavist-
body: If the page doesn't load, then either your network is not letting you connect, or the service is not running, or it is failing for some reason.

Assuming your network is ok, then what does the bitbucket log say the problem is?

comments: author: romeo
body: Hi Nic,

Thanks for replying. Here's is the logs when I try to restart the service. It seems there is issue on tomcat starting under port 7990.

<br />

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
APPLICATION FAILED TO START  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Description:

The Tomcat connector configured to listen on port 7990 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 7990, or configure this application to listen on another port.

2020-09-27 19:21:35,209 INFO \[main\] c.a.b.i.boot.log.BuildInfoLogger Bitbucket 6.9.0 has shut down


author: Nic Brough -Adaptavist-
body: Ok, that's pretty clear - either something is already running on 7990, or there is an error in the connector (check the server settings in \<bitbucket home\>/shared/bitbucket.properties file)


author: romeo
body: When I checked my netstat, the application using the port 7990 is Java. Tried killing the process and restart the bitbucket service in my linux box still no luck.

Where can I check the connector settings? I am using Centos for this server.


author: Nic Brough -Adaptavist-
body: In the file I mentioned in my previous comment.


author: romeo
body: Hi Nic,

Yes, I just changed it there still the same issue.


author: Nic Brough -Adaptavist-
body: So, assuming that there really is nothing else running on 7990, what is wrong in the properties file?


Tags: bitbucket-server

server
Bitbucket Hook Integration Events
Asked by deku2aofa:

Hi,

I am trying to create an integration with your platform to handle events published by Bitbucket for the different variations you support (e.g., pull requests (created, updated, ...), Repository events, etc) - as documented in [webhooks](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/). However, after going through the given documentation, I failed to encounter documentation on the User entity needed, for instance, for the Build Status Updated payload. It's mentioned it's supposed to be in the Common Entities area, but it's not.

Can you please provide its specification? Also, could this documentation be improved with samples of implementation of a given hook with at least one programming language? It would probably help fill some gaps for people when trying to understand this and have a certified guide on how to do it properly?

Best Regards,


Answers:
author: DPKJ
body: [@deku2aofa](/t5/user/viewprofilepage/user-id/4101315)Welcome to the Atlassian Community.

Yes you are correct about the state of documentation here, this need immediate attention. After GDPR related changes made by Atlassian they removed User Object section but haven't removed references to this in documentation, which is pretty bad situation for someone who want to develop on this. I will make Atlassian take a look at this, and update documentation as soon as possible.

Now coming to your query, how does payload looks like for user? one major difference from earlier is it doesn't contain email address now, and fields depend upon visible settings of user. Here is a sample I received one payload today morning,

```
"owner": {
  "display_name": "<DISPLAY_NAME_FULL_NAME>",
  "uuid": "{<USER_UUID>}",
  "links": {
    "self": {
      "href": "https://api.bitbucket.org/2.0/users/<USER_UUID>"
    },
    "html": {
      "href": "https://bitbucket.org/USER_UUID/"
    },
    "avatar": {
      "href": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/<UUID_PATH_TO_AVATAR>"
    }
  },
  "nickname": "<NICK_NAME>",
  "type": "user",
  "account_id": "<ACCOUNT_ID>"
}
```

<br />

Moreover, for ease of development you create a free public <https://requestbin.com> bin and add RequestBin provided url in webhooks section to take a look at all the webhooks. Use this images for reference,

![Screenshot 2020-09-27 at 10.09.27 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/111913i013AECB14063A2BE/image-size/large?v=v2&px=999 "Screenshot 2020-09-27 at 10.09.27 AM.png")![Screenshot 2020-09-27 at 10.22.11 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/111914i10103FC87C996B44/image-size/large?v=v2&px=999 "Screenshot 2020-09-27 at 10.22.11 AM.png")


Tags: bitbucket-cloud

cloud

webhook
public key issue
Asked by Kumkum Tadeja:

While I'm doing a clone, push or pull over SSH with Git, I received a message

Permission denied.

Can anyone help me out?


Answers:
author: Soumyadeep Mandal
body: Hi [@Kumkum Tadeja](/t5/user/viewprofilepage/user-id/3876806) ,

Welcome to the community!

This can be caused by a couple of factors, but these are the most common:

### ****- Your public key isn't loaded into Bitbucket Cloud**** {#toc-hId-1175784292}

To check to see if your public key is loaded into Bitbucket Cloud, do the following:

1. Open a browser and log into Bitbucket Cloud.
2. Choose Your avatar****\> Bitbucket settings**** from the menu bar.  
   ![](https://confluence.atlassian.com/bbkb/files/302811860/838425133/1/1471892004987/image2016-8-22+11%3A53%3A23.png)  
   The system displays the ****Account settings**** page.
3. Click ****SSH keys**** in the Security section.  
   The****SSH Keys**** page displays. It shows a list of any existing keys.
4. If you do not have any keys listed, follow [Set up an SSH key](https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html) to set one up.

### ****- Your identity isn't loaded into your SSH Agent**** {#toc-hId--631670171}

If your SSH agent doesn't know to offer Bitbucket Cloud a key, the connection will fail. To find out what keys your SSH Agent currently is offering, and add them, do the following:

##### ****Windows**** {#toc-hId--1738060056}

Double-click Pageant to view loaded keys (Pageant is a PuTTY authentication agent).

![](https://confluence.atlassian.com/bitbucket/files/221450279/271189099/1/1324319193221/pagent_run.png)

Click 'Add Key' to add any key not found in the list

##### ****On GitBash, OSX or Linux**** {#toc-hId-749452777}

$ ssh-add -l

Then, if you don't see your key listed, add it by

ssh-add \~/.ssh/identity

For more information, check out our full [Troubleshoot SSH issues](https://confluence.atlassian.com/bitbucket/troubleshoot-ssh-issues-271943403.html) guide.

### ****- You do not have permission to create the repository on your local filesystem**** {#toc-hId--1759066264}

If you get the error "Permission denied", it is also possible that git or mercurial doesn't have permission to create the project folder locally. Check permissions for the directory where you're attempting to check out the project, and make sure you have write access.

comments: author: Kumkum Tadeja
body: Hey thanks it worked!


Tags: bitbucket-cloud

cloud
How to lock a time stamp using git
Asked by Hemanti Nag:

My system fails because of timestamps has been changed. How to to allow Git to lockthe timestamp?


Answers:
author: Soumyadeep Mandal
body: Hi [@Hemanti Nag](/t5/user/viewprofilepage/user-id/3876800) ,

Welcome to the community!

What you've stumbled across is one of the fundamental design principles of version control systems. Both Git and Mercurial track content. That is, they only track the file's contents (which is verified by using the SHA-1 of the file). The timestamp of a file is inherently a local attribute. Imagine you move a file from one location to /tmp, then you move it back. The file's contents remain unchanged but its timestamp will be whenever you moved it back.

So, asking to keep file attributes is just not possible with either Git nor Mercurial:

<https://git.wiki.kernel.org/index.php/Git_FAQ#Why_isn.27t_Git_preserving_modification_time_on_files.3F>

The communities of each version control system will undoubtedly tell you that your build system will need to be changed to accommodate for this. Build systems like [bazel.io](http://bazel.io/) are fast and popular solutions, which may work better for you. Furthermore, changing the tools now would break existing build systems including the Linux kernel itself. The topic comes up occasionally, as seen here:

<https://selenic.com/pipermail/mercurial/2015-August/048617.html>

where the project leader himself explains why that's a bad idea.

comments: author: Hemanti Nag
body: Ok. Thanks


Tags: bitbucket-cloud

cloud
Deleted a branch from Git
Asked by Tarak Mehta:

Hi , I have accidentally deleted a branch from my Git repository.

How to get it back or recover it?


Answers:
author: Soumyadeep Mandal
body: Hi [@Tarak Mehta](/t5/user/viewprofilepage/user-id/3876794) ,

Welcome to the community!

Make sure to perform all of this locally, and confirm your repo is in the state you desire before pushing to Bitbucket Cloud. It may also be a good idea to clone your current repo, and test these solutions out first.

If you just deleted the branch, you'll see something like this in your terminal:

Deleted branch \<your-branch\> (was \<sha\>)

To restore the branch, use:

git checkout -b \<branch\> \<sha\>

****If you don't know the 'sha' off the top of your head, you can:****

Find the 'sha' for the commit at the tip of your deleted branch using:

git reflog

To restore the branch, use:

git checkout -b \<branch\> \<sha\>

****If your commits are not in your reflog:****

You can try recovering a branch by reseting your branch to the sha of the commit found using a command like:

git fsck --full --no-reflogs --unreachable --lost-found \| grep commit \| cut -d\\ -f3 \| xargs -n 1 git log -n 1 --pretty=oneline \> .git/lost-found.txt

You can then display each commit using one of these:

git log -p \<commit\>

git cat-file -p \<commit\>

comments: author: Tarak Mehta
body: Thanks for your quick reply!


Tags: bitbucket-cloud

cloud

git
Create a local database with all commits ?
Asked by Ali Hussaini:

Hi I would like to achieve this task of creating a local database which contains all the commits with the names of author , the commit ID , the files name which are changed , the lines added , and the lines removed along with the branch where the commit has been done. Is there a way to import all this data to a local MySQL table as I would like to create a dashboard that lists all these parameters for analysis


Answers:
author: Mikael Sandberg
body: You can use Git log to get all this data out of the repository. Have a look at this [blog post](https://www.thegeekstuff.com/2014/04/git-log/) that shows the 10 essential Git log commands.


Tags: bitbucket-cloud

cloud
PR comments are displayed on incorrect lines (Bitbucket Server)
Asked by kylekaja123:

Bitbucket Server version 7.1.1.

The issue manifests on the Overview tab of a PR. A comment made on a certain line is displayed on the incorrect line on the Overview tab. On the Diff view, the comment is on the correct line.

I think this is happening when a comment is made on a custom diff (e.g. "changes since you last reviewed") and the comment is on a line that was not changed in that specific set of commits.

The overview tab recognizes that the comment was made on a specific commit, but it displays the comment on some seemingly random line.

Here is a specific example I ran into:

I add a comment on line 441 on the latest commit of the PR. There is a change on line 442, but line 441 has not been changed in this commit. The Diff view shows the commit correctly on line 441.

The Overview view shows the comment in the right commit, but it is located at line 461 of the file.

Anyone else running into this issue? If so, are there any workarounds (instead of manually adding the line number in the erroneous comment)?

(I know I am a few versions behind, but my brief look through the release notes didn't reveal anything like this bug. That doesn't mean it isn't fixed in the latest release, though.)


Answers:
author: Imran Khan
body: Hi [@kylekaja123](/t5/user/viewprofilepage/user-id/2090502)

Please raise a support request - <https://support.atlassian.com>. Team would be able to look into the specifics.

Cheers,

Imran


author: Rick L
body: For future reference / whoever is reading this: open issue for this is <https://jira.atlassian.com/browse/BSERV-12652> and seems to be Windows-specific (along with a bunch of other issues, such as <https://confluence.atlassian.com/bitbucketserverkb/intermittently-pull-request-merges-fail-to-delete-branch-with-error-replacing-packed-refs-permission-denied-1050543943.html>). Atlassian has no work around for these problems...


Tags: bitbucket-server

server
Add defaultreviewers to PR if particular change in a specific json file usinh hook
Asked by Dirlau Andrei:

Hello, I'm trying to add default reviewers to a PR opened just if a field in a json is modified.

Until now i figured out just the first condition: to add defaultreviewers if a change is made in that particular file. But i will also need to somehow parse that .json diff and check if that particular field was changed.

My code in repository events:

import com.atlassian.bitbucket.hook.HookResponse  
import com.atlassian.bitbucket.repository.RefChange  
import com.atlassian.bitbucket.repository.Repository

def pullRequest = event.pullRequest

if(pullRequest.pathsMatch("glob:myfile.json", pullRequest.getCommits())){  
return true  
}else{  
return false  
}

the json format:

{  
"repositoryName": "",  
"family": "none",  
"developmentBranch": "master",  
"emailingList": "",  
"defaultReviewersForPR": "userEmail",  
"nrReviewersMustApprovePR": "1",  
"buildSteps": {  
"rpm": {},  
"docker": {  
"publish": true,  
"gate": true  
},  
"helm": {  
"publish": true  
},  
"sonar": {  
"minCoverage": "0"  
}  
},

I will need to add default reviewers only if the "gate" field is changed.

Is there a way to do this?

Thanks


Answers:
author: Robert Giddings [Adaptavist]
body: Hi [@Dirlau Andrei](/t5/user/viewprofilepage/user-id/3644595) ,

Thank you for your post.

We have published a Script to our Adaptavist Library that shows an example of blocking commits based on file content.

The Script can be found here: <https://library.adaptavist.com/entity/block-commits-for-files-containing-content-that-doesnt-match-regex>

Please let me know if this example helps you with what you are trying to achieve. It should be possible to edit the example to meet your needs.

Kind regards,

Robert Giddings,

Product Manager,

ScriptRunner for Bitbucket


Tags: bitbucket-server

scriptrunner

server