youngmon/atlassian-qna huggingface dataset:
Automatically create issue on a specific column
Asked by Athos Online:

Hello.

I am creating issue with automation. My kanban board has 5 columns. All my incidents are automatically added to the 1st column.

How can I make the incidents be created automatically in the 2nd column? What should I add in the condition? I can't find how to do it and or where to do it.

Thanks.


Answers:
author: Athos Online
body: Sorry, I don't quite understand how to do it. When I add the state change conditions, then I have error in the cron.

![Sin-t?tulo-1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/130626i5F272AF0C97CA1FC/image-size/large?v=v2&px=999 "Sin-t?tulo-1.jpg")


author: abelalia87
body: 1.) Create another automation. Trigger is when issue is created. 2.)Then add new condition Reporter is Automation for Jira. 3.)Then add new action, transition issue to the status in your second column. Note: on Rule Details, Check "allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule." From Workflow, First Status should have transition to Status mapped in second column.

comments: author: Athos Online
body: that doesn't work for me


author: Dirk Ronsmans
body: Hi [@Athos Online](/t5/user/viewprofilepage/user-id/4265869) ,

Your columns represent statuses. Each issue is created in the initial status of your workflow.

So if you want them to move to specific column/status you will have to automate that.


author: Thorsten Letschert _Decadis AG_
body: Hi [@Athos Online](/t5/user/viewprofilepage/user-id/4265869) ,

since your '2nd column' is related to another status, what you're trying to achieve is actually an automated transition for your incidents. Without further knowledge of your specific configuration or workflow, the approach would be as follows:

* Trigger: issue created event
* Condition: issue type equals incident
* Action: transition to the status mapped to your 2nd column

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

This approach requires a transition to be available between the statuses of your 1st and 2nd column.

Cheers  
Thorsten

comments: author: Isaac
body: a


author: Tom Williams
body: Hi,

You'd need to include a transition action in your automation rule and transition the newly created issue to the correct status that maps to your second column on the kanban.
How can we make story points mandatory before an issue moves from one workflow status to another?
Asked by hassan_ahmed:

Is it possible to automate a rule in Jira where story points must be added before any issue (task, subtask, bug) is moved from one workflow status to another?

For example, given task A is 'in progress' and does not have any story points assigned to it. When I attempt to change its status to 'in test' then it asks for me to add story points.

I hope this makes sense.

Many thanks.


Answers:
author: Jack Brickey
body: Automation is more like a "post function" as it happens after the transition not before. So you need to build this restriction into the workflow. You could do this using a Validator in the workflow. You can use one of the below whichever meets your needs and then choose Story Points.

![2021-02-10_11-36-33.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/129796i2E53CB3564C3A72A/image-size/large?v=v2&px=999 "2021-02-10_11-36-33.jpg")


author: Iago Docando
body: Edit the desired transition from your workflow configuration screen

Each transition can have conditions or validators, as well as postfunctions. The first two are the relevant points for this matter.

* with a condition: the transition button won't even be visible until the condition is met.
* with a validator: you can click the button but unless the validation conditions are met the transition won't execute.

I'm not sure right now if "story points" is a parameter you can use to define either of those parameters in jira "right out of the box" (you might) but I'm positive you can find some plugins / apps in the marketplace to extend workflow edition capabilities in case you need it.
User Picker Field value showing as hexadecimal number
Asked by Michael Burlew:

I am creating a subtask that will have in the description a field called Hiring Manager which is a User Picker. When I test the description shows a hexadecimal number (ex: 5ff81836332c3a01070b802b) instead of the user name. How do I get it to just show the user name?  

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/130062iF3E78C99D113311E/image-size/large?v=v2&px=999 "Capture.JPG")![Capture2.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/130064iAAB47EFBB31B17E1/image-size/large?v=v2&px=999 "Capture2.JPG")![Capture3.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/130063i57BD234DA6AF0E24/image-size/large?v=v2&px=999 "Capture3.JPG")  


Answers:
author: wwalser
body: <https://support.atlassian.com/jira-software-cloud/docs/smart-values-users/>


author: Mikael Sandberg
body: Since the field is a user picker, try adding .displayName to the smart value, that should return the name instead of the internal Atlassian ID.

comments: author: Mikael Sandberg
body: And welcome to Atlassian Community!


author: Gonchik Tsymzhitov
body: Hi!

What app did you use ?


Tags: atlassian-marketplace

cloud
How to add one Label to all Stories in Bulk in a scrum Baord by Script
Asked by deepak p:

How to add one Label to all Stories in Bulk in a scrum Baord by Script  
Hi ,

I have 1000 User stories in a Board name Board_1.

I wish to add a new Label ''New_Label'' to all 1000 User stories in this board without doing maunally for each user story.

Q: Can a short code can be executed for this?

i.e. project in ('' '' ) AND Board name ''Board_1'' add labels = New-Label ORDER BY Rank ASC


Answers:
author: Jack Brickey
body: Hi Deepak, so you should simply go into board settings for the board and in General copy the filter that is there and paste it into an advance search (click on the search bar and select advance search. Once it displays all of the issues you want (consider if you want all issues, e.g. Done issues?) then you can use Bulk change (via ellipses in upper right). Choose "edit" and go thru the screens. I recommend you ensure the 'send emails' is not checked when you do this as I doubt folks want 1000+ emails ;-)


author: deepak p
body: Thanks a lot , it worked .

Need to do one more task of addling label to all user stories present in current backlog and specific sprint in one go .

Can you please share the steps and query .

Thanks a lot on adv

Deepak


Tags: cloud
Dinamic JQL Filter + pass arguments
Asked by Elvis Nica:

Hello,

I would like to know if it is possible to pass some arguments to a JIRA SQL filter:

e.q.:

<https://jira.zzz.com/issues/?filter=123456#>

project in ( proj) AND issuetype = Bug AND created \>= args\[1\] AND ORDER BY "args\[2\]" ASC

call: [https://jira.zzz.com/rest/api/latest/search?jql=filter=123456\&args=123,234\&fields=assignee](https://jira.zzz.com/rest/api/latest/search?jql=filter=123456&args=123,234&fields=assignee)...

I really do not want to create a filter for each combination of parameters.

E.Q: filter by date - 2019-2020 results in a filter. 2020-2021 results in another filter.

It seems JIRA is very limited and cuts the result list - will NOT show more than ... a couple of hundreds of items, so a large number of filters must be (statically) created to get all results.

Thank you,


Answers:
author: Nic Brough -Adaptavist-
body: Not in the UI. You can build urls like the ones you are suggesting outside Jira, but there's no variable substitution inside it.

Jira stops listing issues at 1,000 to prevent performance issues (but that's just the listing, the data is all in the results)

Could you explain what you are trying to achieve here? We can probably give you a better technical solution than constructing urls by hand.


Tags: cloud

jql
How to prevent transition to done on Epic if it has open issues under it, using Jira automation?
Asked by Meital Adir:

Hi,

I would like to set a transition condition/validator using automation, if Epic is move to done status, check the linked issues in this epic and fail the transition if any of the linked issues are not "done".

The same as "linked issues status validator". can I use Automation to create such rule?

I'm using Jira cloud

Thanks,

Meital


Answers:
author: wwalser
body: Meital,

Just chiming in as a member of the Automation team. Agree with others here who have noted that Automation is not able to create a great user experience here because we can only hook into the action _after_ it's happened. I don't think this falls into a natural use-case for Automation for the moment. Workflows or perhaps a marketplace plugin feel like the way to go here.

Best,  
Wes


author: Curt Holley
body: I agree with [@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322) regarding "real time" is better than post assumed success.

That said, i helped a team set up automation at Story level to monitor for sub-tasks still open and just sent the "initiator" (the person who did the transition) an email.

![automation 2021-02-09 123405.png](https://community.atlassian.com/t5/image/serverpage/image-id/129477iAD12051A6677FAD9/image-size/large?v=v2&px=999 "automation 2021-02-09 123405.png")

comments: author: Meital Adir
body: Thanks [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535)


author: Darryl Lee
body: Yes. A former client implemented such a rule.

The trigger was the initial Transition. There was then an IF block to see if the linked issues were not Done, and if not, then it was transitioned BACK to the previous step.

I believe the rule also added a comment to explain why the transition was "rejected".

comments: author: Darryl Lee
body: Oh, I should note, while this will work, I'm not a fan.

While it's unfortunate that you'd have to pay for a third-party add-on to implement this as a Validator, I it's a much better user-experience to tell users that they cannot do something when they click Submit.

Letting the transition succeed and then notifying them afterward (by the comment) doesn't seem very user-friendly.


author: Meital Adir
body: Thanks for your answer, I'll try that with comment when it's rejected. I agree it would be better to do that as workflow validator.
Unknown fields set during create using JSON
Asked by Peter Fahlstrom:

Hi, i am trying to use this code for setting the "Status" field to 'something' in the Additional fields section..for some strange reason the "Status" field is not recognized..i receive this error message:

'Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -Status (status)'

...but the field is clearly visible in my task layout..

{  
"fields": {  
"status": "SOMETHING"  
}  
}

What am i doing wrong here?


Answers:
author: Peter Fahlstrom
body: Thanks for your reply Gareth,

my automation rule is based on a task being created on a schedule, as i am applying the Transitioning the new task does not receive this value, but the Epic that is scheduled does, apparently i am doing something wrong here...

comments: author: Gareth Cantrell
body: Hi Peter,

I'm assuming you are using a Create issue action somewhere in your rule. If this is the case, you can follow it with a Branch rule/related issues component set to "Most recently created issue" which will act on the last issue created in the rule and then use the transition issue action inside that


author: Gareth Cantrell
body: Hi [@Peter Fahlstrom](/t5/user/viewprofilepage/user-id/3844194)

The status field is set by transitioning the issue through the workflow which is why you cannot set it directly.

When an issue is created, it will be set to the status linked to the Create transition of the workflow.

You will need to use the Transition issue action in an automation rule to move the issue to the correct status.


author: Peter Fahlstrom
body: I was too fast in my reply, i added a branch rule prior the Transition rule with the definition of 'For All created issues' and that looks to be working..

Thanks!

comments: author: Gareth Cantrell
body: You figured it out just as I hit send on my reply ?
Filtering, sorting and partial responses on the REST API not working ???
Asked by Adam Brunt:

Hi all,

I am trying to call the REST API \[ with the correct authentication \] with the following:

```
https://api.bitbucket.org/2.0/repositories/foo/bar/environments?q=name="Test"
```

According to the docs this should return all environments, in foo/bar, with a name of "Test" but it just brings back all the environments. I get similar results when trying to use ?sort \[ order doesn't change \] and ?fields \[ all the environments data is returned rather than the fields I list \]  

Am I missing something obvious here ? Or does filtering/sorting/partial responses not actually work ?

Regards,

Adam


Answers:
author: Theodora Boudale
body: Hi Adam,

I'm afraid that this API endpoint does not support sorting or filtering at the moment. Partial responses with the **fields** query parameter are possible, the way Saxea _Flowie_ explained.

We have a feature request in our issue tracker for supporting filtering and sorting for this endpoint:

* <https://jira.atlassian.com/browse/BCLOUD-22285>

You can add your vote there to express your interest.

In the meantime, you can get all the environments with the API, and then use another tool that filters JSON data to filter the results (e.g. jq is such a tool).

Kind regards,  
Theodora


author: Saxea _Flowie_
body: Hi [@Adam Brunt](/t5/user/viewprofilepage/user-id/5152789) ,

Not a solution, but I tested and can confirm I'm seeing the same behaviour.

The APIs usually error when you use a field that is not filterable. However with this one, it doesn't fail, no matter what you use as filter, and it doesn't respect the pagelen and sort also.

The fields is the only one that seem to work. Note you have to use fields=**values**.name.

comments: author: Adam Brunt
body: Thanks [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) for confirming I wasn't going mad :)  

To be fair, the documentation does say "**Most** 2.0 API resources that return paginated collections" but it would be helpful, in that case, to state in the docs which ones don't !!

Luckily in our case, we only have 4 environments so it's not such an issue to search through all the results; just so long as the pipelines endpoint does support filtering \& sorting.  

I will also try the **values.** part as well.  

Now to do some investigating on how to filter by several fields (some of them nested deep down) at the same time :)


Tags: bitbucket-cloud

cloud
Invoke custom URL from a Pull Request in Bitbucket Cloud
Asked by Gin?s Sanchez:

We are moving from Bitbucket Server to Cloud and would like to know if is there a way to add buttons from a Pull Request to trigger events in Jenkins.

I know that, as discussed [here](https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-Cloud-integration-with-Jenkins/qaq-p/2089224) and in this [video](https://www.youtube.com/watch?v=LNfthmZuRDI), when there is an event (like a developer pushing code to the repository), by using WebHooks, bitbucket notifies Jenkins about that event and a build is triggered. We already have that in place and is working fine.

The point is that from a Pull Request, instead of using the "by default" Merge button in Bitbucket Cloud:

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

we would like to continue working in the same way that for Bitbucket Server, which is to add some buttons in the Pull Request ("Delegate Merge" or "Launch Jenkins Build") to notify Jenkins to run a Jenkins Pipeline that we have in a ci library in groovy (that apart of doing the delegate merge, builds the project, run the tests, generate and push a docker images and increase the VERSION file).

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

Until now we achieved that by using the [pull-request-notifier-for-bitbucket](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket) plugin, but it is not supported in Bitbucket Cloud.

Is there any way or workaround to notify Jenkins for running specific methods from a Pull Request?

Thanks in advance


Answers:
author: Saxea _Flowie_
body: Hi [@Gin?s Sanchez](/t5/user/viewprofilepage/user-id/4398825),

I think one option would be for you to build a simple addon for that? Either using [Forge](https://developer.atlassian.com/platform/forge/getting-started/) or [Connect](https://developer.atlassian.com/cloud/bitbucket/integrating-with-bitbucket-cloud/).

Otherwise, it should be quite simple to add support for that on [Flowie](https://flowie.app/), our addon for Bitbucket cloud that helps implementing workflows. I'd be keen to understand better your workflow and assist on implementing this using Flowie. If you are interested you can get in touch via support@flowie.app.

Regards,  
Renato

comments: author: Gin?s Sanchez
body: Thanks for your quick response [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209)

Going to send a request for developing this, but it is basically to have the same functionality we had in [pull-request-notifier-for-bitbucket](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket) plugin.

Thank you.


Tags: bitbucket-cloud

cloud
Not Receiving an emails while someone mention me in Pull requests or comments in PR
Asked by M Chaitanya Chowdary:

I have not been getting emails when tagged in Pull Requests as a reviewer and if someone comment me in my Pull Requets. I have checked my spam changed my personal settings, and updated settings in the email notification center.


Answers:
author: Theodora Boudale
body: Hi [@M Chaitanya Chowdary](/t5/user/viewprofilepage/user-id/5419112) and welcome to the community!

I checked our email logs and your email address is not in any of our suppression lists.

I can also see that several emails were sent to your email address from **pullrequests-reply \[at\] bitbucket.org** in the last three days. All of these emails show to have been delivered to your mail server.

I cannot see though whether these are emails about someone mentioning you in a PR or about comments in a PR. Have you received any emails at all from **pullrequests-reply \[at\] bitbucket.org** during the last 3 days? I would like to understand if you do receive some PR-related emails or none at all.

Kind regards,  
Theodora

comments: author: M Chaitanya Chowdary
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   

No, till now i haven't received any emails at all from **pullrequests-reply \[at\] bitbucket.org** during the last 3 days.  

\* I am not receiving the mails from beginning. Its not like for certain period of time.


author: Theodora Boudale
body: Hi [@M Chaitanya Chowdary](/t5/user/viewprofilepage/user-id/5419112),

Thank you for the update.

I would suggest checking

* if the emails ended up in your Spam folder
* if you have any filters in your email, that would make our emails skip your Inbox

If our emails are not in your Spam folder and there are no filters, I would suggest reaching out to your email administrator and asking them to investigate why our emails do not make it from your mail server to your Inbox. Our email logs show that PR-related emails have been sent to your email address, and all of them show to have been successfully delivered to your mail server.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


author: M Chaitanya Chowdary
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) for your response   

I will check with email administrator asking them to investigate, If any further issues I will let u know.


author: Theodora Boudale
body: You are welcome [@M Chaitanya Chowdary](/t5/user/viewprofilepage/user-id/5419112), please feel free to reach out if you need anything further.


Tags: bitbucket-cloud

bitbucket-server

cloud
Self-Hosted pipeline npm run build step is being killed
Asked by bayarkhuu:

* My Selft-Hosted runner is Online (Checked it on my runner settings).
* docker build command works on my local machine. But not on bitbucker pipeline.

Full error log (i uploaded to github to simplify): <https://raw.githubusercontent.com/seriseyes/bitbucket-error/main/error>

```

# bitbucket-pipelines.yml
image: node:21.6.0-alpine3.19

pipelines:
  custom:
    deploy:
      - step:
          runs-on: office
          name: Build and Push Docker Image
          size: 2x
          script:
            - docker info
            - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin harbor.medsoft.care
            - TAG=$(echo $BITBUCKET_COMMIT | head -c 8) # Use the first 8 characters of the commit hash as the tag
            - DOCKER_BUILDKIT=1 docker build -t harbor.medsoft.care/medsoft8/ui:$TAG .
            - docker push harbor.medsoft.care/medsoft8/ui:$TAG
          after-script:
            - cat /root/.npm/_logs/*
          services:
            - docker
```

```
#Dockerfile
FROM node:21.6.0-alpine3.19 as builder

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

FROM nginx:alpine

WORKDIR /usr/share/nginx/html

RUN rm -rf ./*

COPY --from=builder /app/dist .

COPY nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 3000

CMD ["nginx", "-g", "daemon off;"]
```


Answers:
author: Theodora Boudale
body: Hi [@bayarkhuu](/t5/user/viewprofilepage/user-id/5419759) and welcome to the community!

The **exit code: 137** mentioned in the logs you provided usually indicates a memory issue.

Your step has **size: 2x**, so 8 GB of memory will be available for this step (if the host machine has that memory available). However, the docker service gets only 1024 MB of that memory. This is the default amount of memory that a service gets unless you specify otherwise in your bitbucket-pipelines.yml file.

For a step with **size: 2x**, you can configure a service to use up to 7128 MB of memory. You can do that by adding in your bitbucket-pipelines.yml file a definition as follows (you can change the value to anything up to 7128):

```
definitions:
  services:
    docker:
      memory: 2048
```

You can check our documentation on services for more details:

* <https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/>

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

data-center

docker
can I have more than 1 workspace?
Asked by blanca.n:

Hi, I have a workspace over my account, it is possible to add another one?

How?

Thanks


Answers:
author: Carlos Garcia Navarro
body: Hi [@blanca.n](/t5/user/viewprofilepage/user-id/3881659) ,

Yes, you can have more than one workspace: <https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/>


Tags: bitbucket-cloud

cloud