youngmon/atlassian-qna huggingface dataset:
Get URL request displays 302 error code with valid http request
Asked by SK:

I created a button in trello for getting an issue from JIRA and posting the httpresponse as comment. I have connected the JIRA instance and authorized it before creating this button.

get url "\<\<JIRA URL\> with the Card Name", and post comment "{httpresponse}"  

However i receive 302 error when i execute the button.

*Running "API" on board "TrelloJira Integration"*

*There was an error requesting the URL \<\<GIVEN_URL_2_JIRA\>\>*

When I manually select the **GIVEN_URL_2_JIRA**, the URL navigates to JIRA and correct id is displayed.

Could you let me know what could be the reason for the failure?


Answers:
author: Hana Ku?erov?
body: Hi [@SK](/t5/user/viewprofilepage/user-id/5000513)

welcome to the Atlassian Community!

To what exactly URL are you sending your request (what is GIVEN_URL_2_JIRA)? Thank you.

comments: author: SK
body: Hi [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) This is the exact request and response I am trying to get as comment

get url "[https://brimfinancial.atlassian.net/jira/software/c/projects/OPS/issues/?jql=summary\~{cardname](https://brimfinancial.atlassian.net/jira/software/c/projects/OPS/issues/?jql=summary~{cardname)}", and post comment "{httpresponse}"


author: Hana Ku?erov?
body: Hi [@SK](/t5/user/viewprofilepage/user-id/5000513) ,

thank you, this way you will get the whole HTML page, I don't think this will work for you.

Usually Jira REST API is used - in your case you will probably need the endpoint [Search for issues using JQL (GET)](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get)


author: SK
body: thanks @\[deleted\]

I have changed the API

Request: <https://brimfinancial.atlassian.net/rest/api/3/filter/search>

Response  
{  
"self": "[https://brimfinancial.atlassian.net/rest/api/3/filter/search?maxResults=50\&startAt=0](https://brimfinancial.atlassian.net/rest/api/3/filter/search?maxResults=50&startAt=0)",  
"maxResults": 50,  
"startAt": 0,  
"total": 0,  
"isLast": true,  
"values": \[\]  
}  
I am not getting any values in the filter. it is empty but returns 200 OK . do you know what i am doing wrong? i checked multiple sources .. any pointer please?  
additional information  
I am JIRA admin and have necessary permission to browse project or create filter.


author: Hana Ku?erov?
body: [@SK](/t5/user/viewprofilepage/user-id/5000513) If you are sending GET request, you need to add search query to the URL (parameter jql, plese see the documentation I've shared before)


Tags: butler

integration
Automating task due dates based on final deadline
Asked by Thomas:

I am currently trying to put together an automation on my board for a store opening.

The issue I am having is that I would like to have cards with different labels have automated due dates based on the final deadline.

For example if Store X opens on the first of October I would like all cards with the PR label to have a deadline of four weeks before the store opens and all cards with the Signage label to be completed eight weeks prior to the store opening.

Is this possible? I've tried a few methods I have seen online to no avail.

Any help would be greatly appreciated


Answers:
author: Hannah Humbert - Simpla Workflows
body: Hey [@Thomas](/t5/user/viewprofilepage/user-id/4999340) ! Welcome to the community :) are you able to share any of the automation commands you've tried so far?  

Not sure if this is close to what you want, but it might help lead you down the right path!  

```
when the blue "PR" label is added to a card, lookup a card titled "Project End Date", set custom field "Project End Date" to "{foundcardduedate}", and set due date on the date in custom field "Project End Date" minus 4 weeks
```

comments: author: Thomas
body: Thank you so much, that was just what I was looking for, I'd found a query/solution that went down the route of duplicating cards/lists/checklists which was a little overcomplicated for my needs.


Tags: automation

due-date
changing card duration in calendars
Asked by Mark Fenton Sweep Services:

Is is possible to change the duration that a card shows in my google calendar?

I set the due date and start time for the card and it shows by default as 1 hr from this but I need to be able to modify this for some jobs


Answers:
author: Hannah Humbert - Simpla Workflows
body: Hi [@Mark Fenton Sweep Services](/t5/user/viewprofilepage/user-id/4764385) ! What integration are you using with google calendar? Did you just paste the Trello board's iCal link into your calendar as mentioned [here](https://support.atlassian.com/trello/docs/using-trello-with-google-calendar/)? I *think* it's expected that only the due date syncs over. Maybe try the [Unito power-up](https://trello.com/power-ups/620422ba06122a0cfc5cd3dd) instead? I believe they support both start and due dates but I could be wrong. Note that it is a paid power up though. An added benefit is you get a faster sync; the iCal option only refreshes about once a day whereas Unito syncs every few seconds-15 mins depending on your plan. Plus you can integrate Trello with all their other tools and use their board sync power up.
Separate Workspaces for Each Client?
Asked by Nicole Hicks:

I am new to Trello and Trying to figure out if I should use separate workspaces for each client or separate boards. I currently do Website Development and Marketing for several clients. Each client would need multiple boards either for a website project or a marketing project. Trying to figure out the best practice. I see a lot of suggestions, so still a little confused by what works best.


Answers:
author: mustafa sener _Hipporello_
body: Hi,

Can you give more information about intended use? Do you plan to get requests from your client like a service desk? Or do you plan to create cards and show the details of these cards to your client and let them make modifications on this card?
?? ? ???????????? ?????? ???????????? ??????? ????? ?????? ? ?????? ??? ??????
Asked by Good Alp ??????:

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


Answers:
author: Alex W
body: Hey there, welcome to the Community!

It sounds like you want to export your boards as CSVs so you can open them in Excel, is this correct? If so, this feature is available natively in Trello for our Premium and Enterprise plans. You can check out the features and pricing for Premium over at <https://trello.com/pricing>

There are a few third-party Power-Ups that also offer the ability to export boards as CSV files, you can find these over at <https://trello.com/power-ups/search?q=export>
removing a board from a team that i don't own
Asked by Su Cheng:

I have several people who have left my organization and they created boards that are associated with my team. I want to remove or close those boards but those people have left. Since I can't remove these boards, they are counting against the max number of boards I can have. I am the admin for the team. Is there anything I can do to remove these boards from my Team, so they don't can't against the max number of boards?


Answers:
author: Ollie Guan
body: Hi [@Su Cheng](/t5/user/viewprofilepage/user-id/991139) ,

free plan or standard/premium/enterprise?

comments: author: Su Cheng
body: i have the free plan.


author: Sue Eddington
body: [@Su Cheng](/t5/user/viewprofilepage/user-id/991139) Did you ever get an answer to your question? I have the same issue!


Tags: board

owner
Question regarding Butler Automations
Asked by Lenora Leasure:

I have the "Daily Task Management" template that states "Where does Butler come on? Each day at 01:00 Butler will rename list **Done Today** to a new list with yesterday's date - so you can keep track of what you did when. A new **Done Today** list will be created. (*Note: You'll need to set up these Butler rules on your new board.* )" I'm VERY new to Trello and I can't figure out how to get the list to automatically rename to the day before. I can find where I set up at a specific time each day I can rename, but it just has a space for the new name.... Can anyone held? Thank you!!


Answers:
author: Felix
body: Hi!

You can use Butler variables to set the new list name: <https://support.atlassian.com/trello/docs/butler-variables/>

For your use-case there's also date arithmetic and formatting options available: <https://support.atlassian.com/trello/docs/arithmetic-and-formatting-in-date-variables/>

To name the list, for example "Done - Aug 2" (when it's currently Aug 3) you'd enter:

```
Done - {date-1d~MMM D}
```

Breaking that down:

* "Done -" is just plain text, no magic here
* "{" tells Butler a variable is coming
* "date" tells Butler to use the date/time of right now
* "-1d" tells Butler to subtract one day
* "\~" tells Butler that we want to format the date
* "MMM D" is the formatting we want. See <https://momentjs.com/docs/#/displaying/> for details about what this means and what other options are available
* "}" tells Butler it's the end of the variable

Hope this helps!

comments: author: Lenora Leasure
body: This is great, thank you!! How about copying cards from one list to another on a daily basis?


author: Gonzalo Zapata
body: HI!  

I use butler until several years and I miss a very useful feature that would save a lot of time for repetitive automatation butler users.

At office we work with boards templates for new projects with several cards groups of rules for this templates and order by diferent command groups, for ex. to do rules list, doing rules list or done rules list.

Bassicaly the issue looks for save 15-20 min time on every repetitive initial cards groups automations when you create a new board (project).

Think in 1 new proyect daily for a creative office with 10-15 group rules to enable, it means two thouthend hour a month invest in a repetitive automatation cards button.  

If you create a family button command grups, thats gives us the posibility to anable all the cards groups rules created for a specific template board and order by family in just only one click button, instead of 15-20 min for each new boar required.  

Awaiting your consideration in this matter.

Best Regards.  
Gonzalo


Tags: butler

list
Trello ? Slack
Asked by ???:

Hello! When filling out the Trello form in Slack, a new card appeared in Trello and a message with a link to this card in Slack. It was very convenient. There are no messages in Slack right now. It would be cool to bring this function back. I attached a screenshot of what the messages looked like in Slack when it appeared earlier.


Answers:
author: Vitalii Saienko
body: Hi [@???](/t5/user/viewprofilepage/user-id/5000174)

Welcome to the community!

This functionality is still there, and it should send a message. Would you mind sending us a message via \`/trello feedback\` slash command in Slack? Make sure to include the link to this post so I can identify you. This will help us to debug your issue further.


Tags: slack
Kann der Butler auch auf DEUTSCH eingestellt werden?
Asked by Norbert Gottschalk:

Wie kann ich den Butler von Englisch auf Deutsch umstellen?


Answers:
author: Felix
body: Leider, nein.

Nur der Erstellungsablauf f?r Schaltfl?chen auf Karten und f?r E-Mail-Berichte ist derzeit lokalisiert und auf Deutsch verf?gbar. Der Rest der Butler-Benutzeroberfl?che ist nur auf Englisch verf?gbar.
My card was deleted after premium trial
Asked by ?smail:

I was trying the premium membership system. After the time expired, I realized that my card was deleted. How can I find my card?


Answers:
author: Meghashrita Kashyap
body: Hi Ismail,

This is very strange, when a premium subscription ends it usually revokes the premium features on the card but does not delete the card, and if there were more than 10 boards on the workspace it gets closed.

Could you please check if any of the boards are closed (<https://support.atlassian.com/trello/docs/closing-a-board/>) and if the cards belonged to them?

Also, request you to please check if the cards are archived. Archived cards can be restored, the below article should help you for reference.

<https://support.atlassian.com/trello/docs/archiving-and-deleting-cards/>

However deleting a card is permanent, and deleted cards can't be restored. For future reference, if you just want to clear the card off of your board, you can archive that card instead so that you can access it again later, if needed.

Hope this helps!

Cheers,   
Meghashrita Kashyap  
Atlassian Support - Trello
Is it possible to trigger a Pipeline Deploy step via API?
Asked by Sidney Chen:

I've got existing scripts to call pipelines via API to trigger the entire pipeline.

```
 curl -X POST -is -u user:pass \ -H 'Content-Type: application/json' \ https://api.bitbucket.org/2.0/repositories/myteam/${repo}/pipelines/ \ -d '{ "target": { "type": "pipeline_ref_target", "ref_type": "branch", "ref_name": "'$branch'", "selector": { "type": "branches", "pattern": "test-*" } } }'
```

Is it possible to actually call a API or a set of APIs to target the last completed pipeline for a given pattern and trigger the Deploy step only?


Answers:
author: Mark C
body: Hi [@Sidney Chen](/t5/user/viewprofilepage/user-id/1302434) ,

Thank you for reach out to the community.

I'm afraid it is not possible to trigger a Pipelines build with the last completed Pipeline for a given pattern and only trigger the step inside that build.

As a workaround, you can trigger a Pipelines build via API using a custom step.

```
curl -u username:password -X POST -k -H 'Content-Type: application/json' -d '{"target": {"commit": {"hash":"COMMIT_HASH_HERE","type":"commit"},"selector": {"type": "custom","pattern": "CUSTOM_STEP_HERE"},"type": "pipeline_ref_target","ref_name": "SOME_BRANCH_HERE","ref_type": "branch"}}' "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/pipelines/"
```

[API Documentation](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines/)

To check if the last commit in your branch succeeded a Pipelines build or not, you can use the API endpoints below.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) However, please note that you'll have to parse the results until you get the build statuses for a commit  
To get the last commit in a branch:

```
curl -u username:password "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/commits/?include=SOME_BRANCH&fields=values.hash,values.links.statuses&size=1&pagelen=1"
```

[API Documentation](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commits)

To get the build statuses for a commit:

```
curl -u username:password "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/commit/SOME_COMMIT_HAS/statuses?fields=values.name,values.state,values.refname"
```

[API Documentation](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bcommit%7D/statuses)

Hope it helps and let me know if you have further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Trying to connect to cpanel host via ssh on pipelines not working.
Asked by Jaz:

I been trying to connect to my cPanel host (liquid web) with an ssh key that i generated and with the ssh key that bitbucket generated. in both instances is not working.

Right now my script is:

```
script:
- apt-get update && apt-get install -y unzip
- apt-get install -y ssh
- ssh-keyscan -t rsa <host> my_known_hosts
- mkdir -p ~/.ssh
- cat my_known_hosts >> ~/.ssh/known_hosts
- (umask 077 ; echo $SSH_KEY | base64 --decode > ~/.ssh/bitbucket)
- cat ~/.ssh/bitbucket
- ssh -i ~/.ssh/bitbucket <user>@<host> 'bash -s' < shell-scripts/update.sh
```

The pipeline give me:

    Host key verification failed.

**But if i connect from my pc with the same key it let me in without error.**

I thought it was because the host asked for a password but it didn't prompt one from my pc. *(The key doesn't have one).*

Exactly the same happened with the SSH key from bitbucket, i generated it, put it in my authorized keys on host, fails in pipeline but not from my pc.


Answers:
author: Jaz
body: The IP from pipelines was blocked on my host. You can whitelist all the pipelines's ips from here [bitbucket cloud pipelines.](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/)


Tags: bitbucket-pipelines

cloud
How do search for an exact string?
Asked by Phillip Rower:

I'm trying to search for an exact string? I put the string in "" and it does find the exact term as well as the individual terms. I want to get the exact results. It's too many results to page through where most of the results don't match my string. The exact matches aren't first items returned. I'm searching for "AWS::S3::Bucket". I enter it in quotes. Give code usually goes into git repositories I'd think an exact search would be very useful. Prioritizing results for exact terms would also be useful.


Answers:
author: Heather Ronnebeck
body: I know that the special characters in your string are removed from the search.
> We strip the following characters from search terms: !"#$%\&'()\*+,/;:\<=\>?@\[\\\]\^\`{\|}\~-

Link - [http://support.atlassian.com/bitbucket-cloud/docs/search-in-bitbucket-cloud/](http://support.atlassian.com/bitbucket-cloud/docs/search-in-bitbucket-cloud/? "Bitbucket Searching")

The above link should help with how to search in bitbucket. My guess would be to do something like:

```
AWS S3 Bucket
```

Bitbucket doesn't like using quotes or : symbols in the search. I hope this helps with your search.


Tags: bitbucket-cloud

cloud
Pipelines: accessing redis-server via unix domain socket not working
Asked by kumaakh:

I have a public docker image which has redis and maven. My Junit testcases access redis-server via unix domain socket. This image has been working fine on gitlab pipeline for more than 1 yr now.   

Today I started setting up a pipeline on bitbucket and for some reason my tests now fail with   
"Failed connecting to /var/run/redis/redis.sock"  
...  
Caused by: java.net.SocketException: No such file or directory  

The same docker image I can pull and check locally via redis-cli that it can connect to redis-server via the same UDS.   

So in a nutshell  
-works on locally running docker  
-works on gitlab pipeline  
-does not work with bitbucket pipeline.  

Does bitbucket pipeline launches these dockers in a special manner that applications do not see anything outside home directory ?   
Any known work arrounds... I guess I can test with localhost:6379 but that leaves a bad taste.   


Answers:
author: Mark C
body: Hi [@kumaakh](/t5/user/viewprofilepage/user-id/1997429)

Thank you for reaching out to the community.

Would it be possible for you to confirm if you're running your public Docker image (with the redis and maven) as a service container on Pipelines?  
Or you're using it as a base Docker image?

If you're using it as a service similar to the [public documentation here](https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/#Redis), I'm afraid it will only be accessible on localhost:6379.

Regards,  
Mark C

comments: author: kumaakh
body: Hello Mark,

redis, maven etc. are all installed on my base docker image. I am running a single main container and no service containers. If it helps here is the public image from hub.docker.com

image: kumaakh/rockbuild:v1.3


author: Mark C
body: Hi [@kumaakh](/t5/user/viewprofilepage/user-id/1997429)

Thanks for the confirmation.

I've tried pulling your public Docker image locally and I did see redis is installed in your Docker image using the redis-cli command.

In this case, would it be possible for you to [debug your Pipelines build locally](https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/) using your public Docker image and perform the JUnit testcases?

Ideally, if it is working locally in a non-interactive shell, it should work as well on Pipelines.

Let me know how it goes.

Mark C


author: kumaakh
body: Mark thanks,  
This was very useful... I could fix the issue by using the suggested debugging approach. I had to start the redis-server as a background process as part of the script and my tests pass now.


author: Mark C
body: Hi [@kumaakh](/t5/user/viewprofilepage/user-id/1997429)

Great! Glad to know debugging your build locally helps.  

Let me know if you have further questions that I can help with.

Regards,  
Mark C


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker

redis
Does a Bitbucket access key bypass the repository permissions?
Asked by Bill Parlock:

I have a Bitbucket repository that is restricted to certain groups as part of the repository permissions. If I add a ssh-key to that repository , will the original repository permissions still be enforced? In other words, if I add a SSH key to a repository will my repository no longer be restricted to the groups I had set up in the repository permissions.


Answers:
author: Mikael Sandberg
body: Yes, the permissions are still enforced if you add a ssh-key to the repository. All the key allows you to bypass is the authentication.

comments: author: Bill Parlock
body: Thank you!


Tags: bitbucket-server

server
Bitbucket Deployments Changes are not shown
Asked by joseph.masini:

Hi all,  

I managed to integrate Bitbucket Cloud with Jira Cloud and also make use of Pipeline Deployments, which have a nifty feature of list the differences from the last deployment.  

I am using this feature to deploy from **develop** following vanilla gitflow:

1. Feature branch opened from develop.
2. Commits on feature branch are prefixed with the Jira Id to use smart commits.
3. The branch goes through a pull-request.
4. The pull-request gets approved and is merged to develop.
5. A pipeline is trigger for a build on develop and the option to also deploy on an environment. Note that the pipeline runs on the merge commit that is done on develop.

Once I click on deploy, a window comes up to show deployment changes which include the commits and Jira issues.

However, in my case, on deployment, no issues are turning up.

Anyone had any experience with this?  

Kind regards,

Joseph


Answers:
author: Caroline R
body: Hi, [@joseph.masini](/t5/user/viewprofilepage/user-id/4495829)! Welcome to the community!

In order to further investigate this issue, could you please confirm if the issue turns up anywhere else in Bitbucket? ie, if you try to use a [Smart commit](https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/), does it populate as a smart commit?

Please, feel free to share any additional information about this case. Thank you.

Kind regards,  
Caroline

comments: author: joseph.masini
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,  

Bitbucket was identifying the smart commits, but for that particular run, it was not detecting the commits.  

It managed to detected the commits in subsequent runs without changing anything.  

Thank you for following up!  

Kind regards,  
Joseph


author: Caroline R
body: Hi, Joseph!

Thanks for getting back to me! In this case, I would like to ask you to monitor this for a few weeks and let me know how it goes.

Thank you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

deployment