youngmon/atlassian-qna huggingface dataset:
Is there a way to programmatically change bamboo tasks (like enable and disable)
Asked by lance_lyons:

Is there a way to programmatically change bamboo tasks (like enable and disable)

i noticed the details of tasks are stored in xml_definition_data. is there a plugin that allows for disabling or enabling programmatically?

thanks


Answers:
author: Daniel Santos
body: Hi [@lance_lyons](/t5/user/viewprofilepage/user-id/853588)  

There is no public API to change this flag directly, but I see two other options that may help:

1. Use Bamboo specs. In specs the following code part would disable the task:

   ```
   .stages(new Stage("Default Stage")
       .jobs(new Job("Default Job", new BambooKey("JOB1"))
           .tasks(new ScriptTask().enabled(false)
   ```

   More details about specs can be found here: [Bamboo Specs - Atlassian Documentation](https://confluence.atlassian.com/bamboo/bamboo-specs-894743906.html).
2. Use the [Conditional tasks for Bamboo](https://marketplace.atlassian.com/apps/1219706/conditional-tasks-for-bamboo?hosting=server&tab=overview) plugin to allow you enabling/disabling tasks based on variables or users running them.  
   More details about this plugin can be found in this post:  
   [How we can configure job with conditional tasks for bamboo plugin? - Atlassian Community](https://community.atlassian.com/t5/Bamboo-questions/How-we-can-configure-job-with-conditional-tasks-for-bamboo-Plug/qaq-p/1105461)

I hope those options can help you.
Update from 6.4.1 to 6.9.1 didn't work, trying to roll back to 6.4.1 but can't get it to work
Asked by Matthew Lyons:

We ran the update to upgrade to 6.9.1 but this wouldn't work so attempted to roll back to 6.4.1 and now that's won't work either.

We either get messages of incompatible database or corrupt database.

Is there anyway to access / read the database to allow us to get bamboo up and running again?

Getting support for what seems like a fairly straight forward problem that was cause by an Atlassian update isn't available!


Answers:
author: Daniel Santos
body: Hello [@Matthew Lyons](/t5/user/viewprofilepage/user-id/1188921),

I'm really sorry to hear that you are facing this issue. I'll do what I can to help you move forward.

We don't have a formal process to roll back an upgrade, but you could take the following steps to restore the old instance:

1. Make sure there is no Bamboo process running in the server machine.
2. Restore the **Bamboo database** as it was prior to the upgrade.
3. Restore the **\<Bamboo_Installation\>** folder.
4. Restore the **\<Bamboo_Home\>** folder.
5. Start the instance again.

Please let me know if there is any step that you cannot follow so   
I can work with you on a different strategy to restore your instance.

> Is there any way to access / read the database to allow us to get bamboo up and running again?

To answer this question I need to know what type of database was used. I hope you are using an external one. It will make things easier.  
You can find details about the DB type and credentials in this file: **\<Bamboo_Home\>/bamboo.cfg.xml**.

Let me know what is the status of this since you asked for help last Friday.
Is there a way to change a large number of artifact details for bamboo tasks
Asked by lance_lyons:

First a little background.

We use bamboo jobs to deploy applications to an environment.

each of our environments consists of approx 25 different apps/services,etc that are all part of the Deploy to an environment.

We typically go from QA to Staging to production but also have a couple QA environments from testing different releases/diff. branches at the same time.

so today we have INT1 to QA1 to Staging for a release that goes out next week.

the release after is in QA2 so it would be INT2 to QA2 to Staging in a month from now roughly.

I have staging currently set to pull buildnumbers and some other artifacts from QA1. in 3-4 weeks I will need to switch all of those artifact pulls to get buildnumbers and other artifacts form QA2.

currently it takes me 30-40 minutes to change all those artifact pulls each time.

Is there a way to bulk change these? Do I need to do this with a sql script (which I dont prefer to do but can)?

I have other environments like staging that also have to pull from QA1 or QA2 depending on the release schedule and time.

Important note

We have configured these 25 deploys per env to have 2 different artifact pulls in the job. One is set to pull from QA1 the other is set to pull from QA2 but at any given time, only 1 of these is enabled and the other disabled.

thanks

Lance


Answers:
author: lance_lyons
body: I was able to see that the artifact task is actually defined and enabled in xml_definition_data.

Now have to find if there is a way to call an api to set that. doing this via sql is not going to be helpful.


Tags: bamboo-administration
Can be possible that Bamboo agent run using of Administrator User instead of Bamboo User?
Asked by SaiCharan:

Bamboo's agents run as user 'bamboo'. If so, I would like to be able to change this to an existing user we have created to perform just such tasks. Is this possible?


Answers:
author: Jimmy Seddon
body: Hi [@SaiCharan](/t5/user/viewprofilepage/user-id/3213776),

I haven't found a way to do this, but since most of what we need to do on our remote agents is Windows Powershell tasks, wqe have worked around this by having the script task change the user that is running the Powershell instance before we start executing the commands.

If you find a way to accomplish what you are asking please share it here.

If not I hope what I've suggested might help you work around the problem.

Thanks!

-James

comments: author: SaiCharan
body: Hi James

I need to bamboo to be run on ROOT user, not as bamboo user.

Thanks!

Sai Charan
Invalid Username error in updating the build plan
Asked by Nitesh Kumar:

When I am trying to update the branch in the repositories, it throws me an error "We couldn't connect to the repository. The details you provided were invalid."

Also "invalid username" shows under the username section.


Answers:
author: Ellie Z _they_them_
body: Hi Nitesh,

Thanks for reaching out to the Atlassian Community!

The issue that you are reporting looks to be related to changes to the Bitbucket Cloud APIs that went live on June 11, 2019. If you are using Bitbucket Cloud (bitbucket.org), please read on.

Since many of these changes were needed to comply with GDPR, and protect our customer data, the changes went live as quickly as possible. Bamboo versions 6.8.3 and 6.9.1 were released to fix these issues, meaning that you will need to upgrade immediately.

**Some background**

The Bitbucket Cloud REST API v1 was removed, and API v2 endpoints were updated to comply with GDPR privacy regulations. Part of these updates removed a variable containing information that Bamboo expects in the JSON response from Bitbucket.

This change resulted in the creation or editing of Linked repositories of type "Bitbucket Cloud" failing with 401 (Unauthorized) exceptions. You may see "Resource removed" or "Invalid username" error messages in the Bamboo UI.

For more information on the "Resource removed" issue, please see our public bug report here:

* [BAM-20270: Bitbucket Cloud Repository uses deprecated API 1.0](https://jira.atlassian.com/browse/BAM-20270)

For more information on the GDPR related change, please see our public bug report:

* [BAM-20455 - Cannot save Bitbucket cloud repository](https://jira.atlassian.com/browse/BAM-20455)

**Workaround**

If you are unable to upgrade right away, as a workaround, we recommend creating Linked repositories of type [*Git*](https://confluence.atlassian.com/bamboo/git-289277007.html) or [*Mercurial*](https://confluence.atlassian.com/bamboo/mercurial-289277014.html) to connect to your [Bitbucket Cloud](https://confluence.atlassian.com/bamboo/bitbucket-cloud-289277000.html) repositories.

I sincerely apologize for any inconvenience this may have caused. Please let me know if you have any questions or concerns.

Cheers,  
Elias Zeidan \| Bamboo Senior Support Engineer


Tags: atl-bam-20455
Is there a way to get Bamboo's build logs via its rest api?
Asked by mary joy anama:

Is it possible to get Bamboo's build logs via rest api?

If yes, is there a way to filter to only get the specific part of the log where it erred out?


Answers:
author: Jimmy Seddon
body: Hi [@mary joy anama](/t5/user/viewprofilepage/user-id/1622334),

It doesn't look like this exists today, but there is a suggestion posted to add this functionality. I'd recommend watching/voting on it, and commenting to add your specific use case to that issue: <https://jira.atlassian.com/browse/BAM-18656>

Sorry I can't offer any more help.

-James

comments: author: Sharad Pattanshetti
body: Really need this feature enabled.
[CLOSE] Problem with trial installation
Asked by Cedric Mollet:

Hello,

I have a problem with the trial installation of Bamboo

![Install Bamboo.png](/t5/image/serverpage/image-id/57510i8632C36AF7599167/image-size/large?v=v2&px=999 "Install Bamboo.png")

MacOS High Sierra version 10.13.6

Java JDK 12.0.1

Chrome 74.0.3729.169


Answers:
author: Cedric Mollet
body: Install success.

My problem is the Java JDK version. I install the JDk 1.8 and it's OK.


author: Nic Brough -Adaptavist-
body: It's trying to install, and that's the "please wait" screen. If this does not end after a while (should not take more than a few minutes), you will need to read the application logs to see where it is going wrong.
Bamboo 503 Error
Asked by Adam Davis:

Keep getting this response (from curl -I)

HTTP/1.1 503 Service Unavailable: Back-end server is at capacity

CPU and memory are fine on the server. The server doesn't seem to be doing anything special.

Running on ec2 Ubuntu instance behind a classic load balancer.


Answers:
author: Adam Davis
body: FIXED. It was the configuration and my health check on my load balancer. After upgrading Bamboo runs on port 8085 not 8080.
How can a customer raise a ticket on behalf of someone?
Asked by Tobias Erting:

So the problem is the following:

Our main customer (A) has different services and sometimes they raise a ticket at the wrong company (B). B than want to sent us a ticket on behalf of the original reporter A. The problem is I don't know how i can allow B that they can modify the reporter. The Group in which B is has the "Modify Reporter" permission but they can't raise a Ticket on behalf of someone else.

As followup question: If this is possible Can I just let them see one Group of customers?

At the moment we are using the free Plan of Jira

Thank you in advance,

Tobias


Answers:
author: Rudy Holtkamp
body: Hi [@Tobias Erting](/t5/user/viewprofilepage/user-id/5499072) and welcome to the community,

Only agents can raise tickets on behalf of someone else. These agents can also see and manage all the tickets. And I think that is not what you want.

That having said, you could create a field where the main customer can provide the name/email of the original reporter. With an automation rule you can add the original reporter as a customer and/or add them as a request participant.

I hope this helps,

Rudy

comments: author: Tobias Erting
body: Hi [@Rudy Holtkamp](/t5/user/viewprofilepage/user-id/636802),

Thank you for your anwser. You are right I don't want them to have that many rights. The workaround sounds like an elegant solution. Do you happen to have a link or another post that explains how to do the automations?

Tobias


Tags: cloud

customer-portal

jira-service-management

jira-service-management-cloud
The user is unable to reply to customer in JSM even after having all the accesses and permissions.
Asked by shivani shirguppi:

The user is unable to reply to customer in JSM even after having all the accesses and permissions. He only can able to add internal note in comment section.


Answers:
author: Rudy Holtkamp
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115) ,

This sounds to me that the user has not got a JSM license, only a Jira Software/Jira Work management license. Only agents (=somebody with a JSM license and the correct project permissions) can reply to customers.

Kind regards,

Rudy


Tags: cloud

jira-service-management

jira-service-management-cloud
To create a ticket in service desk of customer portal using REST API?
Asked by Prabhu:

Hi Team,  

I have checked the REST API documentation for creating a service desk ticket in JIRA?

<https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-post>

Will this create a ticket in customer portal?  

And also in the documentation, I have founded that "requestTypeId" \& "serviceDeskId" fields needs to be passed as request. Where can I find these things in Jira and how?

Then what are the fields need to be mandatory for these to create a ticket in service desk?


Answers:
author: Tansu Akdeniz
body: Hi [@Prabhu](/t5/user/viewprofilepage/user-id/5503012)

Welcome to the Atlassian community.
> Will this create a ticket in customer portal?

Yes.
> Where can I find these things in Jira and how?

You can check the URL. See this [thread](https://community.atlassian.com/t5/Jira-Service-Management/How-to-find-serviceDeskId-and-requestTypeId/qaq-p/1839863).
> Then what are the fields need to be mandatory for these to create a ticket in service desk?

Summary is always required. But if you mark some other fields as required, you have to send them too.

comments: author: Prabhu
body: Thanks [@Tansu Akdeniz](/t5/user/viewprofilepage/user-id/472390)   

Can you also tell me can we use the Basic Authentication to use these API's or do we need Oauth 2.0?  

If OAuth 2.0 needed means how can I get the access token? Since I am new to the Atlassian this is slightly confusing me.


author: Tansu Akdeniz
body: You can do it by supplying basic auth headers described [here](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/).


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
I want to make the attachment field to be required but I am unable to.
Asked by Vladislav Nikov:

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

team-managed project, free tier.


Answers:
author: Vijay Dadi
body: Hello [@Vladislav Nikov](/t5/user/viewprofilepage/user-id/5502936) ,

we do have an option to make attachment as mandatory field.

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

is it disabled for you?

comments: author: Vladislav Nikov
body: [@Vijay Dadi](/t5/user/viewprofilepage/user-id/5408989)as you can see in the picture it is disabled for me. I've "fixed" the issue by creating new company-managed project. Seems like team-managed has some ironing to do.

Thanks for the reply


Tags: attachment

cloud

jira-service-management-cloud

required-field
JMWE Create Multiple SubTasks using Create Issues Post Function
Asked by Roman Treynker:

I apologize in advance as I believe I'm just missing something obvious.

We're building a New Hire Form. Once parent ticket is approved, on Transition via Post Function... using JMWE "Create / Clone Issue(s) Post Function" I was hoping to create multiple subtasks, with different Summaries (titles) for each one - example:

* Email
* Domain Account
* MS Teams

(ideally, it would be the name for that subtask + issue.getAsString("customfield_10512" - Full Name field from parent ticket... but I'll take what I can get). I want to avoid using automation and we purchased JMWE mainly for this purpose. We used to use "Create on Transition" addon, but that required us to have a separate for each subtask which is really messy and hard to make changes, when need to. Any help is greatly appreciated!! Thank you in advance!


Answers:
author: David Fischer
body: Hi [@Roman Treynker](/t5/user/viewprofilepage/user-id/3197982)

you can indeed achieve this using JMWE's Create / Clone Issue(s) Post Function. You need to select the "Multiple issue creation" option and for the Iterator script use:

```
["Email","Domain Account","MS Teams"]
```

Then for the value of the "Summary" field, you can use this "Groovy Template" value:

```
$it - ${issue.getAsString("customfield_10512")} - ${issue.get("summary")}
```

There are some useful examples here: <https://innovalog.atlassian.net/wiki/spaces/JMWE/pages/1223884853/Advanced+configuration+and+usage+of+the+Create+issue+post-function>

comments: author: Roman Treynker
body: Thank you, David!!

And I really appreciate the link. This will be a huge help going forward!


Tags: data-center

jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

jira-service-management-server

jmwe

sub-task
How to create reports forhelpdesk requests?
Asked by Priya Manchukonda:

We would like to create a report for number of change tickets created from helpdesk tickets please.


Answers:
author: Vijay Dadi
body: Hello [@Priya Manchukonda](/t5/user/viewprofilepage/user-id/5502887) ,

You can use the JQL as below to create your report. This will generate a report for the requests which are created via helpdesk portal.

request-channel-type = portal

Sample attached below. Hope this helps

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


Tags: cloud

jira-service-management

jira-service-management-cloud
Creating Automation and Setting Team in Separate Project
Asked by Jon Hayward-Crichton:

Hello,

I'm having issues with configuring a 'create a new bug' ticket.

The way we work is we have a TS (technical support) ticket in the TS project, which then will create a SD (Software Development) ticket in the SD project.

The problem I'm having is creating the new ticket and setting the 'Team'

This doesn't appear to be a new custom field. So I can't find anything but "Team\[Team\]" as to it's ID.

```
{
"update": {
"Team[Team]": {
"set": "team-id-string"
},
},
},
{
"fields": {
"environment": "Thanks for raising {{issue.key}}.",
"labels": [
"Finance & Integration",
"Bug Fix"
],
"Custom Field Name": {
"value": "red"
},
},
}
```

But for some reason I keep getting 'Error while parsing additional fields. Not valid JSON.'

I'm scratching my head, what am I missing when connecting between projects?


Answers:
author: Trudy Claspill
body: Hello [@Jon Hayward-Crichton](/t5/user/viewprofilepage/user-id/5373862)

Welcome to the Atlassian community.

Your first problem is that you JSON syntax is, in fact, not valid. You have left the sample text in the field.

Everything from line 8 to to bottom is the same text, and you need to remove it. You also need to review the comma at the end of line 7.

```
{
  "update": {
    "Team[Team]": {
      "set": "team-id-string"
    },
  },
},
{
  "fields": {
    "environment": "Thanks for raising {{issue.key}}.",
    "labels": [
      "Finance & Integration",
      "Bug Fix"
    ],
    "Custom Field Name": {
      "value": "red"
    },
  },
}
```

In the JSON editing you use either the "update" block or the "fields" block, not both.

If that doesn't completely solve your problems with setting the Team field, then refer to the answer on this post for details about how to set the Team field using advanced JSON editing:

<https://community.atlassian.com/t5/Jira-questions/Is-it-possible-to-edit-the-quot-Team-quot-field-through-Jira/qaq-p/1648833>

comments: author: Jon Hayward-Crichton
body: Hi Trudy,

Thank you for the link, it helped explain quite a lot. Especially how to get the custom field value as the other documentation I found used inspector on the page and that data has since been removed.

This solution worked and it succeeded!

```
{
"fields": {
"customfield_#####": "#################"
}
}
```

The only other question I have is that in terms of automations, is the JSON update the only time you can modify the attached ticket, or is there another block you can use to update the attached ticket in the other project?


author: Trudy Claspill
body: There are multiple Automation actions that can be used to modify issues, such as the Edit Issues and Comment Issue action. These can be used to modify the issue that triggers the rule or other issues, depending on how the rule is structured. It just depends on what you need to do.


Tags: cloud

jira-service-management

jira-service-management-cloud
JSM Organisations - Default Settings
Asked by Mia Bright:

Hey Team,

Just trying to wrap my head around the use of Organisations and how we can best utilise these. Wondering if anyone can help with the following scenario;

We have a team of managers/quality checkers who need to be able to see all requests of a certain type raised by their team. Currently we are having to manually add them in as requested participants on every request raised. I was wondering if there was a way we could automatically populate these staff members into an organisation e.g. "Quality Check" and then share all requests of a specific type with that org (we don't want to share ALL requests, only a specific request type set up for that team).

I hope that makes sense.

Thanks in advance,

Mia


Answers:
author: Gikku
body: [@Mia Bright](/t5/user/viewprofilepage/user-id/4531083) You can try creating an automation rule that triggers for issue created event and add a condition to check for request type equals the type in question.

For issues that matches the condition, you can add an action to edit the issue and modify 'Request participants' field to add such users into the list. The assumption is that it is the same list of the users that are to be added every time for such type of requests.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to create Assets objects via REST API based on JIRA Project attribute type?
Asked by ???/DevOps:

I'm using JSM Asset and trying to create object via REST API

My object has 'Project' type attribute.

When I get this object via REST API, it looks like below :

\`\`\`

{  
"workspaceId": "blahblah",  
"globalId": "foo:3127",  
"id": "3127",  
"objectTypeAttribute": {  
"workspaceId": "blahblah",  
"globalId": "foo:151",  
"id": "151",  
"name": "project",  
"label": false,  
"type": 6,  
"description": "JIRA Project",  
"editable": true,  
"system": false,  
"sortable": true,  
"summable": false,  
"indexed": true,  
"minimumCardinality": 0,  
"maximumCardinality": 1,  
"removable": true,  
"hidden": false,  
"includeChildObjectTypes": false,  
"uniqueAttribute": false,  
"options": "",  
"position": 4  
},  
"objectTypeAttributeId": "151",  
"objectAttributeValues": \[  
{  
"project": {  
"avatarUrl": "<https://bar.atlassian.net/rest/api/3/universal_avatar/view/type/project/avatar/10414>",  
"id": "10224",  
"name": "Log Archive Project",  
"key": "LOGARC"  
},  
"displayValue": "Log Archive Project",  
"searchValue": "Log Archive Project",  
"referencedType": false  
}  
\],  
"objectId": "648"  
},

\`\`\`

and I tried to create an object with every possible way

\`\`\`

{  
"objectTypeAttributeId": "151",  
"objectAttributeValues": \[  
{  
"value": "LOGARC"  
}  
\]  
}

\`\`\`

\`\`\`

{  
"objectTypeAttributeId": "151",  
"objectAttributeValues": \[  
{  
"project":{"key": "LOGARC"}  
}  
\]  
},

\`\`\`

\`\`\`

{  
"objectTypeAttributeId": "151",  
"objectAttributeValues": \[  
{  
"searchValue":"Log Archive Project"  
}  
\]  
},

\`\`\`

etc..,

All my attempts were failed.

And I read this article

<https://confluence.atlassian.com/jirakb/how-to-create-assets-objects-via-rest-api-based-on-different-attribute-type-1157475506.html>

And I found it didn't mention 'Project' type attribute.

So I wonder how to create the object with 'Project' type attribute via REST API.

Thanks


Answers:
author: ???/DevOps
body: Wow, I put 'project.id' into the 'objectAttributeValues\[\].value' then it's succeeded.


Tags: cloud

jira-service-management

jira-service-management-cloud

rest-api